Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
fix: color mode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj authored and Suraj committed May 30, 2023
1 parent f3c5fa7 commit 4ba3e59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react/src/StyledProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ export const StyledProvider: React.FC<{
}, []);

// Set colormode server side
if (typeof window === 'undefined') {
if (Platform.OS === 'web' && currentColorMode) {
set(currentColorMode === 'dark' ? 'dark' : 'light');
}
// if (typeof window === 'undefined') {
if (Platform.OS === 'web' && currentColorMode) {
set(currentColorMode === 'dark' ? 'dark' : 'light');
}
// }

let contextValue;
if (Platform.OS === 'web') {
Expand Down

0 comments on commit 4ba3e59

Please sign in to comment.