[Gekidou] Avoid technical debt (#5795)

* Apply Status bar color

* useIsTablet hook instead of useSplitView in combination with the constant

* Constants clean up
This commit is contained in:
Elias Nahum
2021-10-28 10:15:17 -03:00
committed by GitHub
parent f62822fe52
commit fbd8b92194
55 changed files with 185 additions and 472 deletions

View File

@@ -56,7 +56,13 @@ const ThemeProvider = ({currentTeamId, children, themes}: Props) => {
}
}
return getDefaultThemeByAppearance();
const defaultTheme = getDefaultThemeByAppearance();
EphemeralStore.theme = defaultTheme;
requestAnimationFrame(() => {
setNavigationStackStyles(defaultTheme);
});
return defaultTheme;
};
useEffect(() => {