|
@@ -8,6 +8,7 @@ import { DragDropContext } from 'react-beautiful-dnd';
|
|
import { useState } from 'react';
|
|
import { useState } from 'react';
|
|
import { RowInfo } from '$app/stores/effects/database/row/row_cache';
|
|
import { RowInfo } from '$app/stores/effects/database/row/row_cache';
|
|
import { EditRow } from '$app/components/_shared/EditRow/EditRow';
|
|
import { EditRow } from '$app/components/_shared/EditRow/EditRow';
|
|
|
|
+import { BoardToolbar } from '$app/components/board/BoardToolbar';
|
|
|
|
|
|
export const Board = ({ viewId, title }: { viewId: string; title: string }) => {
|
|
export const Board = ({ viewId, title }: { viewId: string; title: string }) => {
|
|
const { controller, rows, groups, groupByFieldId, onNewRowClick, onDragEnd } = useDatabase(viewId, ViewLayoutPB.Board);
|
|
const { controller, rows, groups, groupByFieldId, onNewRowClick, onDragEnd } = useDatabase(viewId, ViewLayoutPB.Board);
|
|
@@ -22,12 +23,7 @@ export const Board = ({ viewId, title }: { viewId: string; title: string }) => {
|
|
return (
|
|
return (
|
|
<>
|
|
<>
|
|
<div className='flex w-full items-center justify-between'>
|
|
<div className='flex w-full items-center justify-between'>
|
|
- <div className={'flex items-center text-xl font-semibold'}>
|
|
|
|
- <div>{title}</div>
|
|
|
|
- <button className={'ml-2 h-5 w-5'}>
|
|
|
|
- <SettingsSvg></SettingsSvg>
|
|
|
|
- </button>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <BoardToolbar title={title} />
|
|
|
|
|
|
<div className='flex shrink-0 items-center gap-4'>
|
|
<div className='flex shrink-0 items-center gap-4'>
|
|
<SearchInput />
|
|
<SearchInput />
|