Добавлен новый компонент AccountAgentTransactionSection для отображения и управления транзакциями агентов. Обновлена страница аккаунта для интеграции нового компонента. Добавлен компонент AccountAgentTransactionTable для отображения данных транзакций с возможностью фильтрации по датам. Обновлены стили для кнопок подтверждения в account.module.css.
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
import AccountProfile from "../../components/AccountProfile";
|
||||
import AccountSecurity from "../../components/AccountSecurity";
|
||||
import AccountNotifications from "../../components/AccountNotifications";
|
||||
import AccountAgentTransactionSection from "../../components/AccountAgentTransactionSection";
|
||||
|
||||
const initialNotifications = {
|
||||
emailNotifications: true,
|
||||
@@ -41,12 +42,11 @@ export default function AccountPage() {
|
||||
});
|
||||
const [notifications, setNotifications] = useState(initialNotifications);
|
||||
|
||||
|
||||
|
||||
const tabs = [
|
||||
{ id: "profile", label: "Профиль", icon: <UserIcon fontSize="small" /> },
|
||||
{ id: "security", label: "Безопасность", icon: <KeyIcon fontSize="small" /> },
|
||||
{ id: "notifications", label: "Уведомления", icon: <BellIcon fontSize="small" /> },
|
||||
{ id: "agent-transactions", label: "Транзакции агентов", icon: <WorkIcon fontSize="small" /> },
|
||||
];
|
||||
|
||||
return (
|
||||
@@ -80,6 +80,9 @@ export default function AccountPage() {
|
||||
{activeTab === "notifications" && (
|
||||
<AccountNotifications notifications={notifications} setNotifications={setNotifications} />
|
||||
)}
|
||||
{activeTab === "agent-transactions" && (
|
||||
<AccountAgentTransactionSection />
|
||||
)}
|
||||
</div>
|
||||
</AuthGuard>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user