Skip to content

Commit

Permalink
fix MoveLabwareIntervention stories
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Mar 7, 2024
1 parent b6b5d29 commit 72b5eba
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import * as React from 'react'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import { QueryClient, QueryClientProvider } from 'react-query'

import { fixture96Plate } from '@opentrons/shared-data'

import { configReducer } from '../../redux/config/reducer'
import { mockRunData } from './__fixtures__'
import { mockConnectableRobot } from '../../redux/discovery/__fixtures__'
Expand Down Expand Up @@ -42,7 +45,7 @@ const dummyConfig = {
} as any

const store: Store<any> = createStore(configReducer, dummyConfig)

const queryClient = new QueryClient()
const now = new Date()

const pauseCommand = {
Expand All @@ -62,9 +65,11 @@ export default {
const Template: Story<
React.ComponentProps<typeof InterventionModalComponent>
> = args => (
<Provider store={store}>
<InterventionModalComponent {...args} />
</Provider>
<QueryClientProvider client={queryClient}>
<Provider store={store}>
<InterventionModalComponent {...args} />
</Provider>
</QueryClientProvider>
)

export const PauseIntervention = Template.bind({})
Expand Down

0 comments on commit 72b5eba

Please sign in to comment.