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]); }, [dispatch]);
useStarterModelsToast(); useStarterModelsToast();
useHFLoginToast() useHFLoginToast();
return ( return (
<ErrorBoundary onReset={handleReset} FallbackComponent={AppErrorBoundaryFallback}> <ErrorBoundary onReset={handleReset} FallbackComponent={AppErrorBoundaryFallback}>

View File

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

View File

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