Skip to content

Commit

Permalink
Hide a change of theme mode under the feature flag
Browse files Browse the repository at this point in the history
Currently, the designs for the dark mode are not yet fully ready. Let's hide it under the feature flag to make sure that the page is displayed correctly.
  • Loading branch information
kkosiorowska committed Nov 16, 2023
1 parent 5032b6c commit 14a1bb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dapp/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_SUPPORT_THEME_MODE=false
2 changes: 1 addition & 1 deletion dapp/src/theme/utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For the ledger live app, we should detect the theme set for the user.
export function getThemeConfig(theme: string | null) {
return {
initialColorMode: theme,
initialColorMode: import.meta.env.VITE_SUPPORT_THEME_MODE === "true" ? theme : "light",
useSystemColorMode: false,
}
}

0 comments on commit 14a1bb0

Please sign in to comment.