Refactor useSettings hook, parse with zod schema

This commit is contained in:
Alex Gleason
2024-02-13 23:20:18 -06:00
parent b0a82a23d0
commit ffdb744d16
40 changed files with 108 additions and 92 deletions

View File

@ -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;