Добавлен новый компонент AccountAgentTransactionSection для отображения и управления транзакциями агентов. Обновлена страница аккаунта для интеграции нового компонента. Добавлен компонент AccountAgentTransactionTable для отображения данных транзакций с возможностью фильтрации по датам. Обновлены стили для кнопок подтверждения в account.module.css.

This commit is contained in:
Redsandyg
2025-06-06 14:18:00 +03:00
parent 94900b3875
commit a475c50b20
8 changed files with 319 additions and 7 deletions

View File

@@ -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>
);