Skip to content

Commit

Permalink
feat: Rename feature
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik committed Oct 8, 2024
1 parent bc0a44a commit 43f32fb
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions apps/widget/src/components/Common/Heading/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function Heading({ active, title, onClose }: IHeadingProps) {
},
];

const manualEntryImportSteps = [
const directEntryImportSteps = [
{
label: texts.STEPPER_TITLES.UPLOAD_FILE,
},
Expand Down Expand Up @@ -77,7 +77,7 @@ export function Heading({ active, title, onClose }: IHeadingProps) {
...straightImportSteps,
]
: flow === FlowsEnum.MANUAL_ENTRY
? manualEntryImportSteps
? directEntryImportSteps
: straightImportSteps
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand All @@ -13,14 +13,14 @@ interface ManaulEntryViewProps {
onManuallyEnterData?: () => void;
}

export function ManaulEntryView({
export function DirectEntryView({
limit,
texts,
columns,
isLoading,
className,
onManuallyEnterData,
}: ManaulEntryViewProps) {
}: DirectEntryViewProps) {
return (
<Box
bg="var(--stepper-background)"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './DirectEntryView';

This file was deleted.

4 changes: 2 additions & 2 deletions apps/widget/src/components/widget/Phases/Phase1/Phase1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import useStyles from './Phase1.Styles';
import { Divider } from '@ui/Divider';
import { Footer } from 'components/Common/Footer';
import { SheetSelectModal } from './SheetSelectModal';
import { ManaulEntryView } from './ManualEntryView';
import { DirectEntryView } from './DirectEntryView';

interface IPhase1Props {
onNextClick: () => void;
Expand Down Expand Up @@ -121,7 +121,7 @@ export function Phase1({
/>
<Divider orientation={isBiggerThanSm ? 'vertical' : 'horizontal'} label="OR" />

<ManaulEntryView
<DirectEntryView
texts={texts}
columns={columns}
limit={MANUAL_ENTRY_LIMIT}
Expand Down
6 changes: 3 additions & 3 deletions apps/widget/src/components/widget/Widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { IUpload } from '@impler/client';
import { useWidget } from '@hooks/useWidget';
import { useAppState } from '@store/app.context';
import { Layout } from 'components/Common/Layout';
import { ConfirmModal } from './modals/ConfirmModal';
import { useTemplates } from '@hooks/useTemplates';
import { FlowsEnum, PhasesEnum, PromptModalTypesEnum } from '@types';
import { ConfirmModal } from './modals/ConfirmModal';
import { logAmplitudeEvent, resetAmplitude } from '@amplitude';
import { IImportConfig, TemplateModeEnum } from '@impler/shared';
import { FlowsEnum, PhasesEnum, PromptModalTypesEnum } from '@types';

import { Phase0 } from './Phases/Phase0';
import { Phase1 } from './Phases/Phase1';
Expand All @@ -20,7 +20,7 @@ import { Phase3 } from './Phases/Phase3';
import { Phase4 } from './Phases/Phase4';
import { ImageUpload } from './Phases/ImageImport';
import { SelectHeader } from './Phases/SelectHeader';
import { DataGrid } from './Phases/ManualEntryImport';
import { DataGrid } from './Phases/DirectEntryImport';
import { AutoImportPhase1 } from './Phases/AutoImport/AutoImportPhase1';
import { AutoImportPhase2 } from './Phases/AutoImport/AutoImportPhase2';
import { AutoImportPhase3 } from './Phases/AutoImport/AutoImportPhase3';
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/config/texts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const WIDGET_TEXTS = {
INFO: 'Select Header Row from the table. Rows above the header will not be imported. Click on row to change selection.',
},
'PHASE1-2': {
ENTER_DATA: 'Manually enter your data',
ENTER_DATA: 'Directly enter your data',
RECOMMANDED_LIMIT: 'Recommanded upto {records} records',
FIX_INVALID_DATA: 'To complete import you need to fix invalid data',
},
Expand Down

0 comments on commit 43f32fb

Please sign in to comment.