1- import { Button , Card , Dropdown , Space , Spin , Modal } from 'antd' ;
1+ import { Card , Dropdown , Space , Spin , Modal } from 'antd' ;
22import dayjs from 'dayjs' ;
33import React , { useState } from 'react' ;
44import { trpc } from '../../api/trpc' ;
@@ -19,8 +19,15 @@ import { useTranslation } from '@i18next-toolkit/react';
1919import { useNavigate } from '@tanstack/react-router' ;
2020import { useIsMobile } from '@/hooks/useIsMobile' ;
2121import { 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' ;
2328import { useMonitorAction } from './useMonitorAction' ;
29+ import { Button } from '../ui/button' ;
30+ import { RiMoreLine } from 'react-icons/ri' ;
2431
2532interface 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