Skip to content

Commit

Permalink
refactor: unnecessary imports (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxt-tzx authored Sep 25, 2023
1 parent cc13a6c commit 32e9211
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

1 comment on commit 32e9211

@vercel
Copy link

@vercel vercel bot commented on 32e9211 Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.