From f3303568502d47accaad533a6c7b1e202326ce58 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Thu, 24 Aug 2023 12:56:03 +0300 Subject: [PATCH] feat: create structure for components --- .../{ => Activation}/Activation.stories.ts | 0 .../{ => Activation}/Activation.tsx | 0 .../{ => Advicsories}/Advicsories.stories.ts | 0 .../{ => Advicsories}/Advicsories.tsx | 0 .../{ => FormStepper}/FormStepper.css | 0 .../{ => FormStepper}/FormStepper.stories.ts | 0 .../{ => FormStepper}/FormStepper.tsx | 0 .../{ => KeyGeneration}/KeyGeneration.stories.ts | 0 .../{ => KeyGeneration}/KeyGeneration.tsx | 0 .../{ => Overview}/Overview.stories.ts | 0 .../ValidatorOnboarding/{ => Overview}/Overview.tsx | 2 +- .../ValidatorOnboarding/ValidatorOnboarding.tsx | 12 ++++++------ .../{ => ValidatorSetup}/ValidatorSetup.stories.ts | 0 .../{ => ValidatorSetup}/ValidatorSetup.tsx | 0 14 files changed, 7 insertions(+), 7 deletions(-) rename src/pages/ValidatorOnboarding/{ => Activation}/Activation.stories.ts (100%) rename src/pages/ValidatorOnboarding/{ => Activation}/Activation.tsx (100%) rename src/pages/ValidatorOnboarding/{ => Advicsories}/Advicsories.stories.ts (100%) rename src/pages/ValidatorOnboarding/{ => Advicsories}/Advicsories.tsx (100%) rename src/pages/ValidatorOnboarding/{ => FormStepper}/FormStepper.css (100%) rename src/pages/ValidatorOnboarding/{ => FormStepper}/FormStepper.stories.ts (100%) rename src/pages/ValidatorOnboarding/{ => FormStepper}/FormStepper.tsx (100%) rename src/pages/ValidatorOnboarding/{ => KeyGeneration}/KeyGeneration.stories.ts (100%) rename src/pages/ValidatorOnboarding/{ => KeyGeneration}/KeyGeneration.tsx (100%) rename src/pages/ValidatorOnboarding/{ => Overview}/Overview.stories.ts (100%) rename src/pages/ValidatorOnboarding/{ => Overview}/Overview.tsx (98%) rename src/pages/ValidatorOnboarding/{ => ValidatorSetup}/ValidatorSetup.stories.ts (100%) rename src/pages/ValidatorOnboarding/{ => ValidatorSetup}/ValidatorSetup.tsx (100%) diff --git a/src/pages/ValidatorOnboarding/Activation.stories.ts b/src/pages/ValidatorOnboarding/Activation/Activation.stories.ts similarity index 100% rename from src/pages/ValidatorOnboarding/Activation.stories.ts rename to src/pages/ValidatorOnboarding/Activation/Activation.stories.ts diff --git a/src/pages/ValidatorOnboarding/Activation.tsx b/src/pages/ValidatorOnboarding/Activation/Activation.tsx similarity index 100% rename from src/pages/ValidatorOnboarding/Activation.tsx rename to src/pages/ValidatorOnboarding/Activation/Activation.tsx diff --git a/src/pages/ValidatorOnboarding/Advicsories.stories.ts b/src/pages/ValidatorOnboarding/Advicsories/Advicsories.stories.ts similarity index 100% rename from src/pages/ValidatorOnboarding/Advicsories.stories.ts rename to src/pages/ValidatorOnboarding/Advicsories/Advicsories.stories.ts diff --git a/src/pages/ValidatorOnboarding/Advicsories.tsx b/src/pages/ValidatorOnboarding/Advicsories/Advicsories.tsx similarity index 100% rename from src/pages/ValidatorOnboarding/Advicsories.tsx rename to src/pages/ValidatorOnboarding/Advicsories/Advicsories.tsx diff --git a/src/pages/ValidatorOnboarding/FormStepper.css b/src/pages/ValidatorOnboarding/FormStepper/FormStepper.css similarity index 100% rename from src/pages/ValidatorOnboarding/FormStepper.css rename to src/pages/ValidatorOnboarding/FormStepper/FormStepper.css diff --git a/src/pages/ValidatorOnboarding/FormStepper.stories.ts b/src/pages/ValidatorOnboarding/FormStepper/FormStepper.stories.ts similarity index 100% rename from src/pages/ValidatorOnboarding/FormStepper.stories.ts rename to src/pages/ValidatorOnboarding/FormStepper/FormStepper.stories.ts diff --git a/src/pages/ValidatorOnboarding/FormStepper.tsx b/src/pages/ValidatorOnboarding/FormStepper/FormStepper.tsx similarity index 100% rename from src/pages/ValidatorOnboarding/FormStepper.tsx rename to src/pages/ValidatorOnboarding/FormStepper/FormStepper.tsx diff --git a/src/pages/ValidatorOnboarding/KeyGeneration.stories.ts b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.stories.ts similarity index 100% rename from src/pages/ValidatorOnboarding/KeyGeneration.stories.ts rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.stories.ts diff --git a/src/pages/ValidatorOnboarding/KeyGeneration.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx similarity index 100% rename from src/pages/ValidatorOnboarding/KeyGeneration.tsx rename to src/pages/ValidatorOnboarding/KeyGeneration/KeyGeneration.tsx diff --git a/src/pages/ValidatorOnboarding/Overview.stories.ts b/src/pages/ValidatorOnboarding/Overview/Overview.stories.ts similarity index 100% rename from src/pages/ValidatorOnboarding/Overview.stories.ts rename to src/pages/ValidatorOnboarding/Overview/Overview.stories.ts diff --git a/src/pages/ValidatorOnboarding/Overview.tsx b/src/pages/ValidatorOnboarding/Overview/Overview.tsx similarity index 98% rename from src/pages/ValidatorOnboarding/Overview.tsx rename to src/pages/ValidatorOnboarding/Overview/Overview.tsx index e4808fa7..70fdf84a 100644 --- a/src/pages/ValidatorOnboarding/Overview.tsx +++ b/src/pages/ValidatorOnboarding/Overview/Overview.tsx @@ -23,7 +23,7 @@ const Overview = () => { Becoming a validator is a big responsibility with important preparation steps. Only start the deposit process when youre ready. - + By running a validator, you'll be responsible for securing the network and receive continuous payouts for actions that help the network reach consensus. diff --git a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx index f603b414..934d6002 100644 --- a/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorOnboarding.tsx @@ -1,13 +1,13 @@ import { YStack } from 'tamagui' -import FormStepper from './FormStepper' +import FormStepper from './FormStepper/FormStepper' import PageWrapperGradient from '../../components/PageWrappers/PageWrapperGradient' import Titles from '../../components/General/Titles' import { useState } from 'react' -import Overview from './Overview' -import KeyGeneration from './KeyGeneration' -import Advicsories from './Advicsories' -import ValidatorSetup from './ValidatorSetup' -import Activation from './Activation' +import Overview from './Overview/Overview' +import KeyGeneration from './KeyGeneration/KeyGeneration' +import Advicsories from './Advicsories/Advicsories' +import ValidatorSetup from './ValidatorSetup/ValidatorSetup' +import Activation from './Activation/Activation' const ValidatorOnboarding = () => { const [activeStep, setActiveStep] = useState(0) diff --git a/src/pages/ValidatorOnboarding/ValidatorSetup.stories.ts b/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorSetup.stories.ts similarity index 100% rename from src/pages/ValidatorOnboarding/ValidatorSetup.stories.ts rename to src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorSetup.stories.ts diff --git a/src/pages/ValidatorOnboarding/ValidatorSetup.tsx b/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorSetup.tsx similarity index 100% rename from src/pages/ValidatorOnboarding/ValidatorSetup.tsx rename to src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorSetup.tsx