fix: function props vanuit server component verplaatst naar client wrapper
This commit is contained in:
parent
088d318e51
commit
f2698d98d8
2 changed files with 58 additions and 23 deletions
49
components/sprint/sprint-backlog-client.tsx
Normal file
49
components/sprint/sprint-backlog-client.tsx
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
'use client'
|
||||
|
||||
import { SplitPane } from '@/components/split-pane/split-pane'
|
||||
import { SprintBacklogLeft, SprintBacklogRight } from './sprint-backlog'
|
||||
import type { SprintStory, PbiWithStories } from './sprint-backlog'
|
||||
|
||||
interface SprintBacklogClientProps {
|
||||
productId: string
|
||||
sprintId: string
|
||||
stories: SprintStory[]
|
||||
pbisWithStories: PbiWithStories[]
|
||||
sprintStoryIdList: string[]
|
||||
isDemo: boolean
|
||||
}
|
||||
|
||||
export function SprintBacklogClient({
|
||||
productId,
|
||||
sprintId,
|
||||
stories,
|
||||
pbisWithStories,
|
||||
sprintStoryIdList,
|
||||
isDemo,
|
||||
}: SprintBacklogClientProps) {
|
||||
const sprintStoryIds = new Set<string>(sprintStoryIdList)
|
||||
|
||||
return (
|
||||
<SplitPane
|
||||
storageKey={`sprint-${productId}`}
|
||||
left={
|
||||
<SprintBacklogLeft
|
||||
sprintId={sprintId}
|
||||
stories={stories}
|
||||
isDemo={isDemo}
|
||||
selectedStoryId={null}
|
||||
onSelectStory={() => {}}
|
||||
/>
|
||||
}
|
||||
right={
|
||||
<SprintBacklogRight
|
||||
sprintId={sprintId}
|
||||
pbisWithStories={pbisWithStories}
|
||||
sprintStoryIds={sprintStoryIds}
|
||||
isDemo={isDemo}
|
||||
onStoryAdded={() => {}}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue