From 39ac734edd705d8fc28be584606c8dc6431ba8a4 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 27 Mar 2024 10:21:26 +0100 Subject: [PATCH] Clean components --- .../grid/cells/AttachmentCell.svelte | 24 ++++--------------- .../grid/cells/AttachmentSingleCell.svelte | 20 ++++++++++++++++ .../src/components/grid/lib/renderers.js | 3 ++- 3 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 packages/frontend-core/src/components/grid/cells/AttachmentSingleCell.svelte diff --git a/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte b/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte index 6ed6aa0b82..3a1f165b6e 100644 --- a/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte @@ -1,7 +1,6 @@ + + diff --git a/packages/frontend-core/src/components/grid/lib/renderers.js b/packages/frontend-core/src/components/grid/lib/renderers.js index d4ac8b86ec..6d94d16c2d 100644 --- a/packages/frontend-core/src/components/grid/lib/renderers.js +++ b/packages/frontend-core/src/components/grid/lib/renderers.js @@ -11,6 +11,7 @@ import BooleanCell from "../cells/BooleanCell.svelte" import FormulaCell from "../cells/FormulaCell.svelte" import JSONCell from "../cells/JSONCell.svelte" import AttachmentCell from "../cells/AttachmentCell.svelte" +import AttachmentSingleCell from "../cells/AttachmentSingleCell.svelte" import BBReferenceCell from "../cells/BBReferenceCell.svelte" const TypeComponentMap = { @@ -23,7 +24,7 @@ const TypeComponentMap = { [FieldType.NUMBER]: NumberCell, [FieldType.BOOLEAN]: BooleanCell, [FieldType.ATTACHMENT]: AttachmentCell, - [FieldType.ATTACHMENT_SINGLE]: AttachmentCell, + [FieldType.ATTACHMENT_SINGLE]: AttachmentSingleCell, [FieldType.LINK]: RelationshipCell, [FieldType.FORMULA]: FormulaCell, [FieldType.JSON]: JSONCell,