Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: change grid type import
Mike Abebebc9b1a5c33cc
diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/grid/Grid/Grid.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/grid/Grid/Grid.tsxindex aae233abf7..2bd108cb55 100644--- a/frontend/appflowy_tauri/src/appflowy_app/components/grid/Grid/Grid.tsx+++ b/frontend/appflowy_tauri/src/appflowy_app/components/grid/Grid/Grid.tsx@@ -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>();