File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/client/components/monitor Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ import { useTranslation } from '@i18next-toolkit/react';
1010export const MonitorDataMetrics : React . FC < {
1111 monitorId : string ;
1212 monitorType : string ;
13- currectResponse ?: number ;
13+ currentResponse ?: number ;
1414} > = React . memo ( ( props ) => {
1515 const { t } = useTranslation ( ) ;
1616 const workspaceId = useCurrentWorkspaceId ( ) ;
17- const { monitorId, monitorType, currectResponse } = props ;
17+ const { monitorId, monitorType, currentResponse } = props ;
1818 const { data, isLoading } = trpc . monitor . dataMetrics . useQuery (
1919 {
2020 workspaceId,
@@ -62,11 +62,11 @@ export const MonitorDataMetrics: React.FC<{
6262
6363 return (
6464 < div className = "flex justify-between text-center" >
65- { typeof currectResponse === 'number' && (
65+ { typeof currentResponse === 'number' && (
6666 < MonitorStatsBlock
6767 title = { t ( 'Response' ) }
6868 desc = { t ( '(Current)' ) }
69- text = { formatterFn ( currectResponse ) }
69+ text = { formatterFn ( currentResponse ) }
7070 />
7171 ) }
7272
Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ export const MonitorInfo: React.FC<MonitorInfoProps> = React.memo((props) => {
3636 const { t } = useTranslation ( ) ;
3737 const workspaceId = useCurrentWorkspaceId ( ) ;
3838 const { monitorId } = props ;
39- const [ currectResponse , setCurrentResponse ] = useState ( 0 ) ;
39+ const [ currentResponse , setCurrentResponse ] = useState ( 0 ) ;
4040 const navigate = useNavigate ( ) ;
4141 const [ showBadge , setShowBadge ] = useState ( false ) ;
4242 const isMobile = useIsMobile ( ) ;
4343 const hasAdminPermission = useHasAdminPermission ( ) ;
44- const isMonitorDown = currectResponse === - 1 ;
44+ const isMonitorDown = currentResponse === - 1 ;
4545
4646 const {
4747 data : monitorInfo ,
@@ -202,7 +202,7 @@ export const MonitorInfo: React.FC<MonitorInfoProps> = React.memo((props) => {
202202 < MonitorDataMetrics
203203 monitorId = { monitorId }
204204 monitorType = { monitorInfo . type }
205- currectResponse = { currectResponse }
205+ currentResponse = { currentResponse }
206206 />
207207 </ Card >
208208
You can’t perform that action at this time.
0 commit comments