Skip to content

Commit

Permalink
fix(onboarding-flow): impletement cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
aliraza556 committed Oct 27, 2024
1 parent dd87a9f commit bebbffe
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions src/components/ModalsContainer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { lazy } from 'react'
import { useAppStore } from '~/stores/useAppStore'

const LazySettingsModal = lazy(() =>
import('../SettingsModal').then(({ SettingsModal }) => ({ default: SettingsModal })),
Expand Down Expand Up @@ -50,20 +51,24 @@ const LazyOnboardingModal = lazy(() =>
import('./OnboardingFlow').then(({ OnboardingModal }) => ({ default: OnboardingModal })),
)

export const ModalsContainer = () => (
<>
<LazyAddItemModal />
<LazyAddContentModal />
<LazySettingsModal />
<LazyEditNodeNameModal />
<LazyRemoveNodeModal />
<LazySourcesTableModal />
<LazyAddNodeEdgeModal />
<LazyChangeNodeTypeModal />
<LazyBlueprintModal />
<LazyMergeNodeModal />
<LazyUserFeedBackModal />
<LazyCreateBountyModal />
<LazyOnboardingModal />
</>
)
export const ModalsContainer = () => {
const { setUniverseQuestionIsOpen } = useAppStore((s) => s)

return (
<>
<LazyAddItemModal />
<LazyAddContentModal />
<LazySettingsModal />
<LazyEditNodeNameModal />
<LazyRemoveNodeModal />
<LazySourcesTableModal />
<LazyAddNodeEdgeModal />
<LazyChangeNodeTypeModal />
<LazyBlueprintModal />
<LazyMergeNodeModal />
<LazyUserFeedBackModal />
<LazyCreateBountyModal />
<LazyOnboardingModal onSuccess={setUniverseQuestionIsOpen} />
</>
)
}

0 comments on commit bebbffe

Please sign in to comment.