From 3780ddcc962e8323de144029f28841f435adc1ed Mon Sep 17 00:00:00 2001 From: Mariusz Date: Wed, 13 Nov 2024 14:56:30 +0100 Subject: [PATCH] change folders name --- src/components/Main.tsx | 4 ++-- src/components/{Form => form}/Card.tsx | 2 +- src/components/{Form => form}/Cards.tsx | 0 src/components/{Form => form}/InputFields.tsx | 6 +++--- src/components/{Form => form}/InputSection.tsx | 2 +- src/components/{Form => form}/cardDetails.ts | 0 src/components/{Form => form}/data.ts | 0 src/components/hooks/useCards.ts | 2 +- src/components/hooks/useResumeData.ts | 2 +- src/components/{Preview => preview}/PreviewSection.tsx | 0 src/components/{Utils => utils}/Button.tsx | 0 src/components/{Utils => utils}/ChevronBtn.tsx | 0 src/components/{Utils => utils}/InputField.tsx | 0 src/components/{Utils => utils}/Textarea.tsx | 0 14 files changed, 9 insertions(+), 9 deletions(-) rename src/components/{Form => form}/Card.tsx (96%) rename src/components/{Form => form}/Cards.tsx (100%) rename src/components/{Form => form}/InputFields.tsx (97%) rename src/components/{Form => form}/InputSection.tsx (95%) rename src/components/{Form => form}/cardDetails.ts (100%) rename src/components/{Form => form}/data.ts (100%) rename src/components/{Preview => preview}/PreviewSection.tsx (100%) rename src/components/{Utils => utils}/Button.tsx (100%) rename src/components/{Utils => utils}/ChevronBtn.tsx (100%) rename src/components/{Utils => utils}/InputField.tsx (100%) rename src/components/{Utils => utils}/Textarea.tsx (100%) diff --git a/src/components/Main.tsx b/src/components/Main.tsx index 69d59b5..0bb12dd 100644 --- a/src/components/Main.tsx +++ b/src/components/Main.tsx @@ -1,5 +1,5 @@ -import InputSection from "./Form/InputSection"; -import PreviewSection from "./Preview/PreviewSection"; +import InputSection from "./form/InputSection"; +import PreviewSection from "./preview/PreviewSection"; import useResumeData from "./hooks/useResumeData"; import usePrint from "./hooks/useReactToPrint"; diff --git a/src/components/Form/Card.tsx b/src/components/form/Card.tsx similarity index 96% rename from src/components/Form/Card.tsx rename to src/components/form/Card.tsx index f3b1296..0aa0b07 100644 --- a/src/components/Form/Card.tsx +++ b/src/components/form/Card.tsx @@ -1,5 +1,5 @@ import InputFields from "./InputFields"; -import ChevronBtn from "../Utils/ChevronBtn"; +import ChevronBtn from "../utils/ChevronBtn"; import { CardProps } from "../types"; const Card: React.FC = ({ diff --git a/src/components/Form/Cards.tsx b/src/components/form/Cards.tsx similarity index 100% rename from src/components/Form/Cards.tsx rename to src/components/form/Cards.tsx diff --git a/src/components/Form/InputFields.tsx b/src/components/form/InputFields.tsx similarity index 97% rename from src/components/Form/InputFields.tsx rename to src/components/form/InputFields.tsx index eb69f73..33778f0 100644 --- a/src/components/Form/InputFields.tsx +++ b/src/components/form/InputFields.tsx @@ -1,6 +1,6 @@ -import InputField from "../Utils/InputField"; -import Textarea from "../Utils/Textarea"; -import Button from "../Utils/Button"; +import InputField from "../utils/InputField"; +import Textarea from "../utils/Textarea"; +import Button from "../utils/Button"; import { CardProps } from "../types"; import cardDetails from "./cardDetails"; diff --git a/src/components/Form/InputSection.tsx b/src/components/form/InputSection.tsx similarity index 95% rename from src/components/Form/InputSection.tsx rename to src/components/form/InputSection.tsx index 1ea7b7a..e08b2f4 100644 --- a/src/components/Form/InputSection.tsx +++ b/src/components/form/InputSection.tsx @@ -1,5 +1,5 @@ import Cards from "./Cards"; -import Button from "../Utils/Button"; +import Button from "../utils/Button"; import { InputSectionProps } from "../types"; const InputSection: React.FC = ({ diff --git a/src/components/Form/cardDetails.ts b/src/components/form/cardDetails.ts similarity index 100% rename from src/components/Form/cardDetails.ts rename to src/components/form/cardDetails.ts diff --git a/src/components/Form/data.ts b/src/components/form/data.ts similarity index 100% rename from src/components/Form/data.ts rename to src/components/form/data.ts diff --git a/src/components/hooks/useCards.ts b/src/components/hooks/useCards.ts index ce2d425..0c2b172 100644 --- a/src/components/hooks/useCards.ts +++ b/src/components/hooks/useCards.ts @@ -1,6 +1,6 @@ import { useState } from "react"; import { InputSectionProps, InputChangeEvent } from "../types"; -import cardDetails from "../Form/cardDetails"; +import cardDetails from "../form/cardDetails"; const useCards = ({ data, onDataChange }: InputSectionProps) => { const [openCard, setOpenCard] = useState(cardDetails[0].title); diff --git a/src/components/hooks/useResumeData.ts b/src/components/hooks/useResumeData.ts index e82d6e0..63b68ac 100644 --- a/src/components/hooks/useResumeData.ts +++ b/src/components/hooks/useResumeData.ts @@ -1,5 +1,5 @@ import { useState } from "react"; -import { emptyData, exampleData } from "../Form/data"; +import { emptyData, exampleData } from "../form/data"; import { DataProps, HandleDataChangeProps } from "../types"; const useResumeData = () => { diff --git a/src/components/Preview/PreviewSection.tsx b/src/components/preview/PreviewSection.tsx similarity index 100% rename from src/components/Preview/PreviewSection.tsx rename to src/components/preview/PreviewSection.tsx diff --git a/src/components/Utils/Button.tsx b/src/components/utils/Button.tsx similarity index 100% rename from src/components/Utils/Button.tsx rename to src/components/utils/Button.tsx diff --git a/src/components/Utils/ChevronBtn.tsx b/src/components/utils/ChevronBtn.tsx similarity index 100% rename from src/components/Utils/ChevronBtn.tsx rename to src/components/utils/ChevronBtn.tsx diff --git a/src/components/Utils/InputField.tsx b/src/components/utils/InputField.tsx similarity index 100% rename from src/components/Utils/InputField.tsx rename to src/components/utils/InputField.tsx diff --git a/src/components/Utils/Textarea.tsx b/src/components/utils/Textarea.tsx similarity index 100% rename from src/components/Utils/Textarea.tsx rename to src/components/utils/Textarea.tsx