From 9e815108ad44d0cb23ac2a17c2037a68ca6d4625 Mon Sep 17 00:00:00 2001 From: Srishty M Date: Thu, 14 Mar 2024 04:04:12 +0530 Subject: [PATCH] fix: moved to partials --- src/components/form/FormContainer.jsx | 3 ++- src/components/shared/{typography => partials}/FormInputs.jsx | 0 src/components/shared/typography/index.jsx | 1 - src/data/formInformation.js | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/components/shared/{typography => partials}/FormInputs.jsx (100%) diff --git a/src/components/form/FormContainer.jsx b/src/components/form/FormContainer.jsx index 000d2fd..a3e6d27 100644 --- a/src/components/form/FormContainer.jsx +++ b/src/components/form/FormContainer.jsx @@ -1,5 +1,6 @@ import React from 'react'; -import { Heading, Inputs, Paragraph } from '../shared'; +import { Heading, Paragraph } from '../shared'; +import { Inputs } from '../shared/partials/FormInputs'; import formimg from '../../assets/images/form-tickets.png'; import { feeCoverage, initialContent, inputContent, lastPartContent } from '../../data/formInformation'; diff --git a/src/components/shared/typography/FormInputs.jsx b/src/components/shared/partials/FormInputs.jsx similarity index 100% rename from src/components/shared/typography/FormInputs.jsx rename to src/components/shared/partials/FormInputs.jsx diff --git a/src/components/shared/typography/index.jsx b/src/components/shared/typography/index.jsx index b849648..f8a77a7 100644 --- a/src/components/shared/typography/index.jsx +++ b/src/components/shared/typography/index.jsx @@ -3,7 +3,6 @@ import { cn } from '../../../lib/utils'; export { default as Heading } from './Heading'; export { default as Paragraph } from './Paragraph'; export { default as Text } from './Text'; -export { default as Inputs } from './FormInputs'; export const HeroText = ({ children, className, ...props }) => { return ( diff --git a/src/data/formInformation.js b/src/data/formInformation.js index 9791ee2..f054432 100644 --- a/src/data/formInformation.js +++ b/src/data/formInformation.js @@ -24,7 +24,7 @@ export const inputContent = [ id: 'recRollNumber', label: 'REC Roll Number', type: 'text', - regex: '^\d{3}[a-zA-Z]{2}\d{4}$', + regex: '^d{3}[a-zA-Z]{2}d{4}$', maxLength: 11, minLength: 7, placeholder: 'REC Roll Number (for Example: A4275)',