1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Small refactor

This commit is contained in:
viown 2025-02-25 16:57:32 +03:00
parent 0b47abc009
commit b0243adc5b

View file

@ -74,12 +74,11 @@ export const Component = () => {
className='mainAnimatedPage type-interior'
>
<Box className='content-primary'>
<Form method='POST'>
<Stack spacing={3}>
{isConfigError || isNamedConfigError ? (
<Alert severity='error'>{globalize.translate('DisplayLoadError')}</Alert>
) : (
<>
<Form method='POST'>
<Stack spacing={3}>
{!isSubmitting && actionData?.isSaved && (
<Alert severity='success'>
{globalize.translate('SettingsSaved')}
@ -154,10 +153,9 @@ export const Component = () => {
>
{globalize.translate('Save')}
</Button>
</>
)}
</Stack>
</Form>
)}
</Box>
</Page>
);