refactor: 移除 MUI sx 样式和未使用的 GlobalSnackbar 引用

This commit is contained in:
雨霖铃
2026-05-22 20:51:57 +08:00
parent b3dd7146ad
commit 21e44cb889
8 changed files with 10 additions and 28 deletions
+1 -4
View File
@@ -1,8 +1,7 @@
import { useCallback, useMemo, useState } from 'react';
import { Key } from 'lucide-react';
import { useSnackbar } from '@/components/GlobalSnackbar';
import PageHeader from '@/components/PageHeader';
import { stringifyJson, parseJwt } from '@/utils/jwt';
import { parseJwt, stringifyJson } from '@/utils/jwt';
import CopyButton from '@/components/CopyButton';
import TextInputArea from '@/components/TextInputArea';
import { useLazyTranslation } from '@/utils/useLazyTranslation';
@@ -40,7 +39,6 @@ const Section = ({ title, content, color }: SectionProps) => {
};
export default function Index() {
const { showMessage } = useSnackbar();
const { t } = useLazyTranslation('jwt');
const [jwtInput, setJwtInput] = useState('');
@@ -75,7 +73,6 @@ export default function Index() {
}}
allowCopy={true}
showClear={true}
showMessage={showMessage}
externalError={result?.error}
/>