diff --git a/pages/Timestamp/LiveClock.tsx b/pages/Timestamp/LiveClock.tsx index 38f4aff..c5cbb47 100644 --- a/pages/Timestamp/LiveClock.tsx +++ b/pages/Timestamp/LiveClock.tsx @@ -1,6 +1,5 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; -import { Box, IconButton, Tooltip, Typography } from '@mui/material'; -import AccessTimeIcon from '@mui/icons-material/AccessTime'; +import { Clock } from 'lucide-react'; import CopyButton from '@/components/CopyButton'; import { useSnackbar } from '@/components/GlobalSnackbar'; import type { UnitType } from '@/config/pageTheme'; @@ -38,29 +37,27 @@ const LiveClock = React.memo(({ unit, onUseNow }: LiveClockProps) => { }, [now, showMessage, t]); return ( - - +
+ {t('timestamp:currentTs')} - - + + {displayVal} - - - - - - + + - +
); }); diff --git a/pages/Timestamp/ResultView.tsx b/pages/Timestamp/ResultView.tsx index 9faa5b6..3065cde 100644 --- a/pages/Timestamp/ResultView.tsx +++ b/pages/Timestamp/ResultView.tsx @@ -1,5 +1,4 @@ import React, { useMemo } from 'react'; -import { Box, Fade, Stack, Typography } from '@mui/material'; import dayjs from '@/utils/dayjs'; import CopyButton from '@/components/CopyButton'; import type { UnitType } from '@/config/pageTheme'; @@ -38,60 +37,57 @@ const ResultView = React.memo( if (!result) { if (!showEmptyPlaceholder) return null; return ( - {t('timestamp:resultEmpty')} +
+ {t('timestamp:resultEmpty')} +
); } return ( - - - - {t('timestamp:resultLabel')} - +
+ + {t('timestamp:resultLabel')} + - - - {result} - - - +
+ + {result} + + +
- - {[ - { label: t('timestamp:relativeTime'), value: extraInfo?.relative }, - { label: t('timestamp:iso8601'), value: extraInfo?.iso }, - { label: t('timestamp:utcTime'), value: extraInfo?.utc }, - ].map((item) => ( - - - {item.label} - - - - {item.value} - - {item.value && ( - - )} - - - ))} - - - +
+ {[ + { label: t('timestamp:relativeTime'), value: extraInfo?.relative }, + { label: t('timestamp:iso8601'), value: extraInfo?.iso }, + { label: t('timestamp:utcTime'), value: extraInfo?.utc }, + ].map((item) => ( +
+ + {item.label} + +
+ + {item.value} + + {item.value && ( + + )} +
+
+ ))} +
+
); }, );