mirror of
https://github.com/colanode/colanode.git
synced 2025-12-21 22:19:33 +01:00
Implement table view settings
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import React from 'react';
|
||||
import { LocalNode } from '@/types/nodes';
|
||||
import { DatabaseContext } from '@/contexts/database';
|
||||
import { DatabaseViews } from './database-views';
|
||||
import { ScrollArea } from '@/components/ui/scroll-area';
|
||||
import { useDatabaseQuery } from '@/queries/use-database-query';
|
||||
import { Database } from '@/components/databases/database';
|
||||
|
||||
interface DatabaseContainerNodeProps {
|
||||
node: LocalNode;
|
||||
@@ -20,13 +18,5 @@ export const DatabaseContainerNode = ({ node }: DatabaseContainerNodeProps) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<DatabaseContext.Provider
|
||||
value={{ id: node.id, name: data?.name, fields: data?.fields }}
|
||||
>
|
||||
<ScrollArea className="h-full max-h-full w-full overflow-y-auto px-10 pb-12">
|
||||
<DatabaseViews key={node.id} views={data.views} />
|
||||
</ScrollArea>
|
||||
</DatabaseContext.Provider>
|
||||
);
|
||||
return <Database node={data} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user