Skip to content

Commit

Permalink
[dashboard/EnsoDevtoolsImpl] Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
somebody1234 committed Feb 19, 2025
1 parent 1aba426 commit d23960e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions app/gui/src/dashboard/components/Devtools/EnsoDevtoolsImpl.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/**
* @file
*
* A component that provides a UI for toggling paywall features.
*/
/** @file A component that provides a UI for toggling paywall features. */
import * as React from 'react'

import * as reactQuery from '@tanstack/react-query'
Expand Down Expand Up @@ -48,8 +44,8 @@ import {
} from '#/providers/FeatureFlagsProvider'
import { useLocalStorage } from '#/providers/LocalStorageProvider'
import * as backend from '#/services/Backend'
import LocalStorage, { type LocalStorageData } from '#/utilities/LocalStorage'
import { unsafeKeys } from '#/utilities/object'
import { LocalStorage } from '#/utilities/LocalStorage'
import { unsafeKeys } from 'enso-common/src/utilities/data/object'

/** A component that provides a UI for toggling paywall features. */
export function EnsoDevtools() {
Expand All @@ -68,7 +64,7 @@ export function EnsoDevtools() {
const setAnimationsDisabled = useSetAnimationsDisabled()

const { localStorage } = useLocalStorage()
const [localStorageState, setLocalStorageState] = React.useState<Partial<LocalStorageData>>({})
const [localStorageState, setLocalStorageState] = React.useState<Record<string, unknown>>({})

// Re-render when localStorage changes.
React.useEffect(() => localStorage.subscribeAll(setLocalStorageState), [localStorage])
Expand Down

0 comments on commit d23960e

Please sign in to comment.