mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: change grid type import
This commit is contained in:
parent
8b68b1390c
commit
bc9b1a5c33
@ -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…
Reference in New Issue
Block a user