Refactored useConfig.

This commit is contained in:
Mike Cao 2023-08-27 19:56:44 -07:00
parent cc574e6da4
commit 183dab3ddc
11 changed files with 27 additions and 39 deletions

View file

@ -9,7 +9,7 @@ export function AppLayout({ title, children }) {
const { user } = useRequireLogin();
const config = useConfig();
if (!user || !config) {
if (!user || !config || config?.uiDisabled) {
return null;
}