From 74c5ae1f7d1b416663b6b2e94f29b3891b0f8c42 Mon Sep 17 00:00:00 2001 From: Guy Ben-Aharon Date: Thu, 8 Aug 2024 21:34:55 +0300 Subject: [PATCH] index and field button --- .../table-list-item-content.tsx | 60 +++++++++++++++++-- 1 file changed, 54 insertions(+), 6 deletions(-) diff --git a/src/pages/editor-page/side-panel/tables-section/table-list/table-list-item/table-list-item-content/table-list-item-content.tsx b/src/pages/editor-page/side-panel/tables-section/table-list/table-list-item/table-list-item-content/table-list-item-content.tsx index 0c5eb055..fb62dbe4 100644 --- a/src/pages/editor-page/side-panel/tables-section/table-list/table-list-item/table-list-item-content/table-list-item-content.tsx +++ b/src/pages/editor-page/side-panel/tables-section/table-list/table-list-item/table-list-item-content/table-list-item-content.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Ellipsis, Trash2 } from 'lucide-react'; +import { Ellipsis, Trash2, Plus, FileType2, FileKey2 } from 'lucide-react'; import { Input } from '@/components/input/input'; import { Combobox } from '@/components/combobox/combobox'; import { Button } from '@/components/button/button'; @@ -10,6 +10,7 @@ import { AccordionTrigger, AccordionContent, } from '@/components/accordion/accordion'; +import { Separator } from '@/components/separator/separator'; export interface TableListItemContentProps { tableColor: string; @@ -119,7 +120,7 @@ export const TableListItemContent: React.FC = ({ return (
= ({ - Fields +
+
Fields
+
+
+ +
+
+
{renderField()} @@ -146,9 +159,21 @@ export const TableListItemContent: React.FC = ({ - Indexes +
+
Indexes
+
+
+ +
+
+
{renderIndex()} @@ -156,6 +181,29 @@ export const TableListItemContent: React.FC = ({
+ +
+
+ +
+
+ +
+
); };