mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: gridpage error
This commit is contained in:
parent
75f7b9765d
commit
7970e7fae3
@ -22,36 +22,37 @@ export const Grid = ({ viewId }: { viewId: string }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
controller &&
|
<>
|
||||||
groups && (
|
{controller && groups && (
|
||||||
<>
|
<>
|
||||||
<div className='mx-auto mt-8 flex flex-col gap-8 px-8'>
|
<div className='mx-auto mt-8 flex flex-col gap-8 px-8'>
|
||||||
<div className='flex w-full items-center justify-between'>
|
<div className='flex w-full items-center justify-between'>
|
||||||
<GridTitle />
|
<GridTitle />
|
||||||
<GridToolbar />
|
<GridToolbar />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* table component view with text area for td */}
|
||||||
|
<div className='flex flex-col gap-4'>
|
||||||
|
<table className='w-full table-fixed text-sm'>
|
||||||
|
<GridTableHeader />
|
||||||
|
<GridTableRows onOpenRow={onOpenRow} allRows={rows} viewId={viewId} controller={controller} />
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<GridAddRow />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<GridTableCount />
|
||||||
</div>
|
</div>
|
||||||
|
{showGridRow && boardRowInfo && (
|
||||||
{/* table component view with text area for td */}
|
<EditRow
|
||||||
<div className='flex flex-col gap-4'>
|
onClose={() => setShowGridRow(false)}
|
||||||
<table className='w-full table-fixed text-sm'>
|
viewId={viewId}
|
||||||
<GridTableHeader />
|
controller={controller}
|
||||||
<GridTableRows onOpenRow={onOpenRow} allRows={rows} viewId={viewId} controller={controller} />
|
rowInfo={boardRowInfo}
|
||||||
</table>
|
></EditRow>
|
||||||
|
)}
|
||||||
<GridAddRow />
|
</>
|
||||||
</div>
|
)}
|
||||||
|
</>
|
||||||
<GridTableCount />
|
|
||||||
</div>
|
|
||||||
{showGridRow && boardRowInfo && (
|
|
||||||
<EditRow
|
|
||||||
onClose={() => setShowGridRow(false)}
|
|
||||||
viewId={viewId}
|
|
||||||
controller={controller}
|
|
||||||
rowInfo={boardRowInfo}
|
|
||||||
></EditRow>
|
|
||||||
)}
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user