Skip to content

Commit

Permalink
minor refactor (keep in sync with morpho)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxt-tzx committed Sep 25, 2023
1 parent cc13a6c commit d19f84e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import { format } from 'date-fns'
import { FeatureContext } from '~/components/AppProviders'
import { z } from 'zod'
import { LoginStateContext } from '~/features/auth'
import { LOGGED_IN_KEY } from '~/constants/localStorage'
import { useLocalStorage } from '~/hooks/useLocalStorage'

// Initialize MSW
initialize({
Expand Down Expand Up @@ -85,7 +83,7 @@ export const mockFeatureFlagsDecorator: Decorator<Args> = (
}

const LoginStateDecorator: Decorator<Args> = (storyFn, { parameters }) => {
const [hasLoginStateFlag, setLoginStateFlag] = useState<boolean>(
const [hasLoginStateFlag, setLoginStateFlag] = useState(
Boolean(parameters.loginState)
)

Expand Down

0 comments on commit d19f84e

Please sign in to comment.