chore(ui): lint

This commit is contained in:
psychedelicious 2024-03-20 09:37:44 +11:00
parent 97fe6e483d
commit c356cabe97
3 changed files with 3 additions and 7 deletions

View File

@ -71,7 +71,7 @@ const App = ({ config = DEFAULT_CONFIG, selectedImage }: Props) => {
}, [dispatch]);
useStarterModelsToast();
useHFLoginToast()
useHFLoginToast();
return (
<ErrorBoundary onReset={handleReset} FallbackComponent={AppErrorBoundaryFallback}>

View File

@ -69,10 +69,7 @@ export const HFToken = () => {
</Button>
</Flex>
<FormHelperText>
<ExternalLink
label={t('modelManager.hfTokenHelperText')}
href="https://huggingface.co/settings/tokens"
/>
<ExternalLink label={t('modelManager.hfTokenHelperText')} href="https://huggingface.co/settings/tokens" />
</FormHelperText>
<FormErrorMessage>{error}</FormErrorMessage>
</FormControl>

View File

@ -67,8 +67,7 @@ const ToastDescription = ({ token_status }: Props) => {
if (token_status === 'invalid') {
return (
<Text fontSize="md">
{t('modelManager.hfTokenInvalidErrorMessage')}{' '}
{t('modelManager.hfTokenInvalidErrorMessage2')}
{t('modelManager.hfTokenInvalidErrorMessage')} {t('modelManager.hfTokenInvalidErrorMessage2')}
<Button onClick={onClick} variant="link" color="base.50" flexGrow={0}>
{t('modelManager.modelManager')}.
</Button>