mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 06:37:14 -04:00
fix: change grid type import
This commit is contained in:
parent
8b68b1390c
commit
bc9b1a5c33
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,3 @@
|
|||
import { ViewLayoutTypePB } from '@/services/backend';
|
||||
|
||||
import { useDatabase } from '../../_shared/database-hooks/useDatabase';
|
||||
import { GridTableCount } from '../GridTableCount/GridTableCount';
|
||||
import { GridTableHeader } from '../GridTableHeader/GridTableHeader';
|
||||
|
@ -10,9 +8,10 @@ import { GridToolbar } from '../GridToolbar/GridToolbar';
|
|||
import { EditRow } from '$app/components/_shared/EditRow/EditRow';
|
||||
import { useState } from 'react';
|
||||
import { RowInfo } from '$app/stores/effects/database/row/row_cache';
|
||||
import { ViewLayoutPB } from '@/services/backend';
|
||||
|
||||
export const Grid = ({ viewId }: { viewId: string }) => {
|
||||
const { controller, rows, groups } = useDatabase(viewId, ViewLayoutTypePB.Grid);
|
||||
const { controller, rows, groups } = useDatabase(viewId, ViewLayoutPB.Grid);
|
||||
const [showGridRow, setShowGridRow] = useState(false);
|
||||
const [boardRowInfo, setBoardRowInfo] = useState<RowInfo>();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue