File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
apps/database/app/table/[database]/[table] Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 33import { useRouter } from 'next/navigation' ;
44import { useEffect , useState } from 'react' ;
55import { DataTableView } from '@/components/data-table-view' ;
6- import { TableControls } from '@/components/table-controls' ;
7- import { TablePagination } from '@/components/table-pagination' ;
86import { TableTabs } from '@/components/table-tabs' ;
97import { TableTopbar } from '@/components/table-topbar' ;
108
@@ -26,12 +24,12 @@ interface TableStats {
2624 uncompressed_size : string ;
2725}
2826
29- export default function TableDetail ( {
27+ export default async function TableDetail ( {
3028 params,
3129} : {
32- params : { database : string ; table : string } ;
30+ params : Promise < { database : string ; table : string } > ;
3331} ) {
34- const { database, table } = params ;
32+ const { database, table } = await params ;
3533 const [ data , setData ] = useState < QueryResult | null > ( null ) ;
3634 const [ stats , setStats ] = useState < TableStats | null > ( null ) ;
3735 const [ loading , setLoading ] = useState ( false ) ;
You can’t perform that action at this time.
0 commit comments