Prevent white flash on loading page

This commit is contained in:
Nilay Majorwar 2022-02-22 02:22:33 +05:30
parent 9dcfad555d
commit 3e6fb8c780

View File

@ -35,6 +35,8 @@ export const DarkModeProvider = ({
height: "100%",
backgroundColor: isDark ? Colors.DARK_GRAY2 : Colors.GRAY4,
}}
// This prevents white flash when loading/refreshing the page
className={isDark ? Classes.DARK : ""}
>
{children}
</div>