mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 02:25:35 +01:00
Split board view/edit rendering and isolate edit interactions
This commit is contained in:
parent
b09694ddb6
commit
d8c41ac8a6
15 changed files with 249 additions and 111 deletions
15
src/app/(main)/boards/[boardId]/BoardViewBody.tsx
Normal file
15
src/app/(main)/boards/[boardId]/BoardViewBody.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { useBoard } from '@/components/hooks';
|
||||
import { BoardViewRow } from './BoardViewRow';
|
||||
|
||||
export function BoardViewBody() {
|
||||
const { board } = useBoard();
|
||||
const rows = board?.parameters?.rows ?? [];
|
||||
|
||||
return (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
|
||||
{rows.map(row => (
|
||||
<BoardViewRow key={row.id} columns={row.columns} />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue