feat(webui): 修改token

This commit is contained in:
bietiaop
2025-01-29 22:08:45 +08:00
parent b1e3270386
commit 82860a3bb0
6 changed files with 315 additions and 239 deletions

View File

@@ -5,7 +5,7 @@ import { IoMdRefresh } from 'react-icons/io'
export interface SaveButtonsProps {
onSubmit: () => void
reset: () => void
refresh: () => void
refresh?: () => void
isSubmitting: boolean
}
@@ -27,21 +27,23 @@ const SaveButtons: React.FC<SaveButtonsProps> = ({
</Button>
<Button
color="primary"
color="danger"
isLoading={isSubmitting}
onPress={() => onSubmit()}
>
</Button>
<Button
isIconOnly
color="secondary"
radius="full"
variant="flat"
onPress={() => refresh()}
>
<IoMdRefresh size={24} />
</Button>
{refresh && (
<Button
isIconOnly
color="secondary"
radius="full"
variant="flat"
onPress={() => refresh()}
>
<IoMdRefresh size={24} />
</Button>
)}
</div>
</div>
)