Skip to content

Commit

Permalink
fix(theme-provider): prevent flash of unstyled content
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyaaa committed Dec 13, 2023
1 parent dad84bf commit 33ea36a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/theme-provider/theme-provider.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ export default function ThemeProvider(props: ThemeProviderProps) {
data-interchain-color-mode={
props.forceColorMode == null ? undefined : props.forceColorMode
}
style={{
visibility: state.isMounted ? "visible" : "hidden",
}}
>
{props.children}
</div>
Expand Down

0 comments on commit 33ea36a

Please sign in to comment.