Skip to content

Commit

Permalink
chore: remove unused variables and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
filoozom committed Oct 28, 2023
1 parent 9740abc commit bef4d36
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/lib/utils/color.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { getClosestColor, hexToRgb } from '@waku-objects/luminance'
import { browser } from '$app/environment'
import type { DarkMode } from '$lib/stores/theme'

interface Color {
name: string
Expand Down
8 changes: 0 additions & 8 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
let unsubscribeWalletStore: (() => void) | undefined = undefined
let unsubscribeExchangeStore: (() => void) | undefined = undefined
let loading = true
let error: string | undefined = undefined
let isDarkQuery: MediaQueryList
let isSystemDark: boolean | undefined
onMount(async () => {
unsubscribeWalletStore = walletStore.subscribe(({ wallet }) => {
Expand Down Expand Up @@ -60,11 +57,6 @@
})
}
loading = false
isDarkQuery = window.matchMedia('(prefers-color-scheme: dark)')
isDarkQuery.onchange = (event) => {
isSystemDark = event.matches
}
})
onDestroy(() => {
Expand Down

0 comments on commit bef4d36

Please sign in to comment.