2
0

🐛 Fix next/image not loading in self-hosting

Closes #1083
This commit is contained in:
Baptiste Arnaud
2023-12-12 14:15:23 +01:00
parent fcfbd63443
commit c373108b55
3 changed files with 4 additions and 199 deletions

View File

@@ -5,11 +5,8 @@ import {
Stack,
Radio,
Text,
Image,
} from '@chakra-ui/react'
import Image from 'next/image'
import lightModeIllustration from 'public/images/light-mode.png'
import darkModeIllustration from 'public/images/dark-mode.png'
import systemModeIllustration from 'public/images/system-mode.png'
import { useTranslate } from '@tolgee/react'
type Props = {
@@ -24,17 +21,17 @@ export const AppearanceRadioGroup = ({ defaultValue, onChange }: Props) => {
{
value: 'light',
label: t('account.preferences.appearance.lightLabel'),
image: lightModeIllustration,
image: '/images/light-mode.png',
},
{
value: 'dark',
label: t('account.preferences.appearance.darkLabel'),
image: darkModeIllustration,
image: '/images/dark-mode.png',
},
{
value: 'system',
label: t('account.preferences.appearance.systemLabel'),
image: systemModeIllustration,
image: '/images/system-mode.png',
},
]
return (