From 51ffb82a29e10a13338f9e479e60f15818c87adb Mon Sep 17 00:00:00 2001 From: Dom Farr Date: Sat, 29 Oct 2022 12:08:19 +0100 Subject: [PATCH] Moved all proposa components into dedicated folder --- src/containers/App.js | 4 ++-- .../{ => proposals}/NewCollaborationProposal.js | 12 ++++++------ src/containers/{ => proposals}/ProposalView.js | 14 +++++++------- 3 files changed, 15 insertions(+), 15 deletions(-) rename src/containers/{ => proposals}/NewCollaborationProposal.js (81%) rename src/containers/{ => proposals}/ProposalView.js (69%) diff --git a/src/containers/App.js b/src/containers/App.js index b3d1a9e..6733f4a 100644 --- a/src/containers/App.js +++ b/src/containers/App.js @@ -25,9 +25,9 @@ import { YourDetails } from "../presentation/YourDetails"; import { Dev } from "../test/Dev"; import { Dashboard } from "./Dashboard"; import HomePage from "./HomePage"; -import { NewCollaborationProposal } from "./NewCollaborationProposal"; import { OnboardingSteps } from "./onboading/OnboardingSteps"; -import { ProposalView } from "./ProposalView"; +import { NewCollaborationProposal } from "./proposals/NewCollaborationProposal"; +import { ProposalView } from "./proposals/ProposalView"; function App() { const { user, signin, signout, onboard } = useContext(UserContext); diff --git a/src/containers/NewCollaborationProposal.js b/src/containers/proposals/NewCollaborationProposal.js similarity index 81% rename from src/containers/NewCollaborationProposal.js rename to src/containers/proposals/NewCollaborationProposal.js index 521c1ed..50d2609 100644 --- a/src/containers/NewCollaborationProposal.js +++ b/src/containers/proposals/NewCollaborationProposal.js @@ -1,12 +1,12 @@ import React from "react"; import { useNavigate } from "react-router"; import { v4 as uuid } from "uuid"; -import { proposals } from "../api/data"; -import { ProposalStep1 } from "../presentation/proposal/ProposalStep1"; -import { ProposalStep2 } from "../presentation/proposal/ProposalStep2"; -import { ProposalStep3 } from "../presentation/proposal/ProposalStep3"; -import { ProposalStep4 } from "../presentation/proposal/ProposalStep4"; -import { MobileStepper } from "../presentation/stepper/MobileStepper"; +import { proposals } from "../../api/data"; +import { ProposalStep1 } from "../../presentation/proposal/ProposalStep1"; +import { ProposalStep2 } from "../../presentation/proposal/ProposalStep2"; +import { ProposalStep3 } from "../../presentation/proposal/ProposalStep3"; +import { ProposalStep4 } from "../../presentation/proposal/ProposalStep4"; +import { MobileStepper } from "../../presentation/stepper/MobileStepper"; export const NewCollaborationProposal = () => { const nav = useNavigate(); diff --git a/src/containers/ProposalView.js b/src/containers/proposals/ProposalView.js similarity index 69% rename from src/containers/ProposalView.js rename to src/containers/proposals/ProposalView.js index 153da0f..9de3aa7 100644 --- a/src/containers/ProposalView.js +++ b/src/containers/proposals/ProposalView.js @@ -1,13 +1,13 @@ import { Stack } from "@mui/material"; import React from "react"; import { useParams } from "react-router"; -import { proposals } from "../api/data"; -import { ProfileCard } from "../containers/profile/ProfileCard"; -import { BackLink } from "../presentation/BackLink"; -import { ProposalStep1 } from "../presentation/proposal/ProposalStep1"; -import { ProposalStep2 } from "../presentation/proposal/ProposalStep2"; -import { ProposalStep3 } from "../presentation/proposal/ProposalStep3"; -import { ProposalStep4 } from "../presentation/proposal/ProposalStep4"; +import { proposals } from "../../api/data"; +import { ProfileCard } from "../profile/ProfileCard"; +import { BackLink } from "../../presentation/BackLink"; +import { ProposalStep1 } from "../../presentation/proposal/ProposalStep1"; +import { ProposalStep2 } from "../../presentation/proposal/ProposalStep2"; +import { ProposalStep3 } from "../../presentation/proposal/ProposalStep3"; +import { ProposalStep4 } from "../../presentation/proposal/ProposalStep4"; export const ProposalView = () => { // 👇️ get ID from url