mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): lint
This commit is contained in:
parent
97fe6e483d
commit
c356cabe97
@ -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}>
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user