Refactor useSettings hook, parse with zod schema
This commit is contained in:
@ -18,7 +18,7 @@ const AboutPage: React.FC = () => {
|
||||
const soapboxConfig = useSoapboxConfig();
|
||||
|
||||
const [pageHtml, setPageHtml] = useState<string>('');
|
||||
const [locale, setLocale] = useState<string>(settings.get('locale'));
|
||||
const [locale, setLocale] = useState<string>(settings.locale);
|
||||
|
||||
const { aboutPages } = soapboxConfig;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user