Skip to content

Commit

Permalink
Delete unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Nov 16, 2023
1 parent dc0c14c commit 5032b6c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion dapp/src/hooks/useDetectThemeMode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useEffect } from "react"
import { LOCAL_STORAGE_CHAKRA_COLOR_MODE } from "../constants/local-storage"

// eslint-disable-next-line import/prefer-default-export
export function useDetectThemeMode(): string | null {
const params = new URLSearchParams(window.location.search)
const themeMode = params.get("theme")
Expand Down
1 change: 0 additions & 1 deletion dapp/src/theme/utils/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// TODO: Currently, the correct colors have not yet been defined.
// Let's update them later.
// eslint-disable-next-line import/prefer-default-export
export const colors = {
white: "#FFF",
black: "#000",
Expand Down
4 changes: 1 addition & 3 deletions dapp/src/theme/utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// For the ledger live app, we should detect the theme set for the user.
// Otherwise, let's set the mode to light by default.
// eslint-disable-next-line import/prefer-default-export
export function getThemeConfig(theme: string | null) {
return {
initialColorMode: theme ?? "light",
initialColorMode: theme,
useSystemColorMode: false,
}
}

0 comments on commit 5032b6c

Please sign in to comment.