From 5032b6cd61ccc7d50adfc2b14e6e2ce43fc2aa5f Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Thu, 16 Nov 2023 20:16:23 +0100 Subject: [PATCH] Delete unnecessary comments --- dapp/src/hooks/useDetectThemeMode.ts | 1 - dapp/src/theme/utils/colors.ts | 1 - dapp/src/theme/utils/utils.ts | 4 +--- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dapp/src/hooks/useDetectThemeMode.ts b/dapp/src/hooks/useDetectThemeMode.ts index e6ff94f33..2dfe90427 100644 --- a/dapp/src/hooks/useDetectThemeMode.ts +++ b/dapp/src/hooks/useDetectThemeMode.ts @@ -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") diff --git a/dapp/src/theme/utils/colors.ts b/dapp/src/theme/utils/colors.ts index 4872d0992..645b990bd 100644 --- a/dapp/src/theme/utils/colors.ts +++ b/dapp/src/theme/utils/colors.ts @@ -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", diff --git a/dapp/src/theme/utils/utils.ts b/dapp/src/theme/utils/utils.ts index 0fa5ce0f4..2f60e1c7a 100644 --- a/dapp/src/theme/utils/utils.ts +++ b/dapp/src/theme/utils/utils.ts @@ -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, } } \ No newline at end of file