diff --git a/frontend/src/pages/TestList/index.tsx b/frontend/src/pages/TestList/index.tsx index 39cfcb0..42e9ec5 100644 --- a/frontend/src/pages/TestList/index.tsx +++ b/frontend/src/pages/TestList/index.tsx @@ -1,6 +1,6 @@ -import { EditOutlined, PlayCircleOutlined, PlusOutlined } from '@ant-design/icons' +import { EditOutlined, MoreOutlined, PlayCircleOutlined, PlusOutlined } from '@ant-design/icons' import { useQuery } from '@tanstack/react-query' -import { Button, Space, Spin, Table, Tag, Typography } from 'antd' +import { Button, Dropdown, Spin, Table, Typography } from 'antd' import type { ColumnsType } from 'antd/es/table' import { useNavigate } from 'react-router-dom' @@ -58,28 +58,36 @@ export default function TestList() { { title: '', key: 'actions', - width: 200, + width: 60, + align: 'center', render: (_: unknown, record: TestListItem) => ( - - - - - + navigate(`/tests/${record.id}`), + }, + { + key: 'edit', + icon: , + label: 'Изменить', + onClick: () => navigate(`/tests/${record.id}/edit`), + }, + { type: 'divider' }, + { + key: 'take', + icon: , + label: 'Пройти тест', + onClick: () => navigate(`/tests/${record.id}/take`), + }, + ], + }} + trigger={['click']} + > + - +