diff --git a/pages/Jwt/index.tsx b/pages/Jwt/index.tsx index 4238a8b..dbefd2d 100644 --- a/pages/Jwt/index.tsx +++ b/pages/Jwt/index.tsx @@ -1,7 +1,6 @@ import { useCallback, useMemo, useState } from 'react'; -import { Box, Container, Paper, Stack, Typography } from '@mui/material'; +import { Key } from 'lucide-react'; import { useSnackbar } from '@/components/GlobalSnackbar'; -import VpnKeyIcon from '@mui/icons-material/VpnKey'; import PageHeader from '@/components/PageHeader'; import { stringifyJson, parseJwt } from '@/utils/jwt'; import CopyButton from '@/components/CopyButton'; @@ -18,42 +17,25 @@ interface SectionProps { const Section = ({ title, content, color }: SectionProps) => { const { t } = useLazyTranslation('jwt'); return ( - - - +
+ {title} - - + +
- - - +
+
+
         {content ? stringifyJson(content) : t('jwt:invalidFormat')}
-      
-    
+      
+ ); }; @@ -77,15 +59,11 @@ export default function Index() { }, [jwtInput]); return ( - - - } - /> +
+
+ } /> - +
{/* Input Area */} {result && !result.error && ( - +
- - - +
+
+ {t('jwt:signatureTitle')} - + - - +
+ {result.signature || t('jwt:noSignature')} - - - + +
+
)} -
- - +
+
+
); }