chore: remove redundant kanban item id
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
import { useCallback } from 'react';
|
|
||||||
import { CardItem } from './CardItem';
|
|
||||||
import { styled } from '@toeverything/components/ui';
|
|
||||||
import { useKanban } from '@toeverything/components/editor-core';
|
|
||||||
import { CardItemPanelWrapper } from './dndable/wrapper/CardItemPanelWrapper';
|
|
||||||
import type {
|
import type {
|
||||||
KanbanCard,
|
KanbanCard,
|
||||||
KanbanGroup,
|
KanbanGroup,
|
||||||
} from '@toeverything/components/editor-core';
|
} from '@toeverything/components/editor-core';
|
||||||
|
import { useKanban } from '@toeverything/components/editor-core';
|
||||||
|
import { styled } from '@toeverything/components/ui';
|
||||||
|
import { useCallback } from 'react';
|
||||||
|
import { CardItem } from './CardItem';
|
||||||
|
import { CardItemPanelWrapper } from './dndable/wrapper/CardItemPanelWrapper';
|
||||||
|
|
||||||
const AddCardWrapper = styled('div')({
|
const AddCardWrapper = styled('div')({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -48,7 +48,7 @@ export const CardContext = (props: Props) => {
|
|||||||
item={item}
|
item={item}
|
||||||
active={activeId === id}
|
active={activeId === id}
|
||||||
>
|
>
|
||||||
<CardItem id={id} block={block} />
|
<CardItem block={block} />
|
||||||
</CardItemPanelWrapper>
|
</CardItemPanelWrapper>
|
||||||
</StyledCardContainer>
|
</StyledCardContainer>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { CardItemWrapper } from '../wrapper/CardItemWrapper';
|
|
||||||
import { CardItem } from '../../CardItem';
|
import { CardItem } from '../../CardItem';
|
||||||
import type { KanbanCard } from '@toeverything/components/editor-core';
|
|
||||||
import type { DndableItems } from '../type';
|
import type { DndableItems } from '../type';
|
||||||
|
import { CardItemWrapper } from '../wrapper/CardItemWrapper';
|
||||||
|
|
||||||
export function renderContainerDragOverlay({
|
export function renderContainerDragOverlay({
|
||||||
containerId,
|
containerId,
|
||||||
@@ -18,7 +17,7 @@ export function renderContainerDragOverlay({
|
|||||||
return (
|
return (
|
||||||
<CardItemWrapper
|
<CardItemWrapper
|
||||||
key={id}
|
key={id}
|
||||||
card={<CardItem key={id} id={id} block={block} />}
|
card={<CardItem key={id} block={block} />}
|
||||||
index={index}
|
index={index}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user