From 43f32fb1be235df040bbb27079f4447ffb511b15 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Tue, 8 Oct 2024 16:28:19 +0530 Subject: [PATCH] feat: Rename feature --- apps/widget/src/components/Common/Heading/Heading.tsx | 4 ++-- .../{ManualEntryImport => DirectEntryImport}/DataGrid.tsx | 0 .../{ManualEntryImport => DirectEntryImport}/index.ts | 0 .../DirectEntryView.tsx} | 6 +++--- .../widget/Phases/Phase1/DirectEntryView/index.ts | 1 + .../widget/Phases/Phase1/ManualEntryView/index.ts | 1 - apps/widget/src/components/widget/Phases/Phase1/Phase1.tsx | 4 ++-- apps/widget/src/components/widget/Widget.tsx | 6 +++--- packages/client/src/config/texts.config.ts | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) rename apps/widget/src/components/widget/Phases/{ManualEntryImport => DirectEntryImport}/DataGrid.tsx (100%) rename apps/widget/src/components/widget/Phases/{ManualEntryImport => DirectEntryImport}/index.ts (100%) rename apps/widget/src/components/widget/Phases/Phase1/{ManualEntryView/ManualEntryView.tsx => DirectEntryView/DirectEntryView.tsx} (96%) create mode 100644 apps/widget/src/components/widget/Phases/Phase1/DirectEntryView/index.ts delete mode 100644 apps/widget/src/components/widget/Phases/Phase1/ManualEntryView/index.ts diff --git a/apps/widget/src/components/Common/Heading/Heading.tsx b/apps/widget/src/components/Common/Heading/Heading.tsx index f1c84b45..492016d5 100644 --- a/apps/widget/src/components/Common/Heading/Heading.tsx +++ b/apps/widget/src/components/Common/Heading/Heading.tsx @@ -29,7 +29,7 @@ export function Heading({ active, title, onClose }: IHeadingProps) { }, ]; - const manualEntryImportSteps = [ + const directEntryImportSteps = [ { label: texts.STEPPER_TITLES.UPLOAD_FILE, }, @@ -77,7 +77,7 @@ export function Heading({ active, title, onClose }: IHeadingProps) { ...straightImportSteps, ] : flow === FlowsEnum.MANUAL_ENTRY - ? manualEntryImportSteps + ? directEntryImportSteps : straightImportSteps } /> diff --git a/apps/widget/src/components/widget/Phases/ManualEntryImport/DataGrid.tsx b/apps/widget/src/components/widget/Phases/DirectEntryImport/DataGrid.tsx similarity index 100% rename from apps/widget/src/components/widget/Phases/ManualEntryImport/DataGrid.tsx rename to apps/widget/src/components/widget/Phases/DirectEntryImport/DataGrid.tsx diff --git a/apps/widget/src/components/widget/Phases/ManualEntryImport/index.ts b/apps/widget/src/components/widget/Phases/DirectEntryImport/index.ts similarity index 100% rename from apps/widget/src/components/widget/Phases/ManualEntryImport/index.ts rename to apps/widget/src/components/widget/Phases/DirectEntryImport/index.ts diff --git a/apps/widget/src/components/widget/Phases/Phase1/ManualEntryView/ManualEntryView.tsx b/apps/widget/src/components/widget/Phases/Phase1/DirectEntryView/DirectEntryView.tsx similarity index 96% rename from apps/widget/src/components/widget/Phases/Phase1/ManualEntryView/ManualEntryView.tsx rename to apps/widget/src/components/widget/Phases/Phase1/DirectEntryView/DirectEntryView.tsx index 0f32811b..56b9d7c6 100644 --- a/apps/widget/src/components/widget/Phases/Phase1/ManualEntryView/ManualEntryView.tsx +++ b/apps/widget/src/components/widget/Phases/Phase1/DirectEntryView/DirectEntryView.tsx @@ -4,7 +4,7 @@ import { Button } from '@ui/Button'; import { WIDGET_TEXTS } from '@impler/client'; import { IColumn, numberFormatter, replaceVariablesInString } from '@impler/shared'; -interface ManaulEntryViewProps { +interface DirectEntryViewProps { limit?: number; className?: string; columns?: IColumn[]; @@ -13,14 +13,14 @@ interface ManaulEntryViewProps { onManuallyEnterData?: () => void; } -export function ManaulEntryView({ +export function DirectEntryView({ limit, texts, columns, isLoading, className, onManuallyEnterData, -}: ManaulEntryViewProps) { +}: DirectEntryViewProps) { return ( void; @@ -121,7 +121,7 @@ export function Phase1({ /> -