Skip to content

Commit 691bc4b

Browse files
committed
refactor: update monitor page style
1 parent 1cf43cc commit 691bc4b

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

src/client/components/monitor/MonitorInfo.tsx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button, Card, Dropdown, Space, Spin, Modal } from 'antd';
1+
import { Card, Dropdown, Space, Spin, Modal } from 'antd';
22
import dayjs from 'dayjs';
33
import React, { useState } from 'react';
44
import { trpc } from '../../api/trpc';
@@ -19,8 +19,15 @@ import { useTranslation } from '@i18next-toolkit/react';
1919
import { useNavigate } from '@tanstack/react-router';
2020
import { useIsMobile } from '@/hooks/useIsMobile';
2121
import { Alert, AlertDescription, AlertTitle } from '../ui/alert';
22-
import { LuAlertTriangle } from 'react-icons/lu';
22+
import {
23+
LuAlertTriangle,
24+
LuDelete,
25+
LuMoreVertical,
26+
LuTrash2,
27+
} from 'react-icons/lu';
2328
import { useMonitorAction } from './useMonitorAction';
29+
import { Button } from '../ui/button';
30+
import { RiMoreLine } from 'react-icons/ri';
2431

2532
interface MonitorInfoProps {
2633
monitorId: string;
@@ -79,7 +86,7 @@ export const MonitorInfo: React.FC<MonitorInfoProps> = React.memo((props) => {
7986
{hasAdminPermission && (
8087
<div className="flex gap-2">
8188
<Button
82-
type="primary"
89+
variant="secondary"
8390
onClick={() => {
8491
navigate({
8592
to: '/monitor/$monitorId/edit',
@@ -139,7 +146,11 @@ export const MonitorInfo: React.FC<MonitorInfoProps> = React.memo((props) => {
139146
],
140147
}}
141148
>
142-
<Button icon={<MoreOutlined />} />
149+
<Button
150+
variant="secondary"
151+
size="icon"
152+
Icon={LuMoreVertical}
153+
/>
143154
</Dropdown>
144155

145156
<Modal
@@ -226,7 +237,7 @@ export const MonitorInfo: React.FC<MonitorInfoProps> = React.memo((props) => {
226237
],
227238
}}
228239
>
229-
<Button icon={<DeleteOutlined />} danger={true}>
240+
<Button variant="destructive" Icon={LuTrash2}>
230241
{t('Clear Data')}
231242
</Button>
232243
</Dropdown>

0 commit comments

Comments
 (0)