From c333323f371f13eb1586e6d43f9d479b9e76ab23 Mon Sep 17 00:00:00 2001 From: NishantGupt786 Date: Sun, 17 Mar 2024 18:09:18 +0530 Subject: [PATCH 1/2] add --- .../src/app/{submit-idea => _submit-idea}/page.tsx | 0 .../submit-idea-form.tsx | 0 devsoc24-portal-fe/src/app/home/page.tsx | 13 ++++++------- devsoc24-portal-fe/src/components/team/Option.tsx | 10 +++------- 4 files changed, 9 insertions(+), 14 deletions(-) rename devsoc24-portal-fe/src/app/{submit-idea => _submit-idea}/page.tsx (100%) rename devsoc24-portal-fe/src/app/{submit-idea => _submit-idea}/submit-idea-form.tsx (100%) diff --git a/devsoc24-portal-fe/src/app/submit-idea/page.tsx b/devsoc24-portal-fe/src/app/_submit-idea/page.tsx similarity index 100% rename from devsoc24-portal-fe/src/app/submit-idea/page.tsx rename to devsoc24-portal-fe/src/app/_submit-idea/page.tsx diff --git a/devsoc24-portal-fe/src/app/submit-idea/submit-idea-form.tsx b/devsoc24-portal-fe/src/app/_submit-idea/submit-idea-form.tsx similarity index 100% rename from devsoc24-portal-fe/src/app/submit-idea/submit-idea-form.tsx rename to devsoc24-portal-fe/src/app/_submit-idea/submit-idea-form.tsx diff --git a/devsoc24-portal-fe/src/app/home/page.tsx b/devsoc24-portal-fe/src/app/home/page.tsx index d37beeb..39b0d2e 100644 --- a/devsoc24-portal-fe/src/app/home/page.tsx +++ b/devsoc24-portal-fe/src/app/home/page.tsx @@ -242,10 +242,9 @@ export default function HomePage() { ]; const ideaCard = [ { - text: "Submit An Idea", - showModal: getIdea !== "idea found" && getIdea !== "", + text: "Submit an Idea", + showModal: true, modalType: "Choice", - routeTo: "/submit-idea", }, ]; @@ -330,16 +329,16 @@ export default function HomePage() { title="Idea Submission" cardImage="ideaSubmissionImg" cardContent={ - getIdea === "idea found" ? "Idea Submitted" : "No Idea Yet" + getIdea === "idea found" ? "Idea Submitted" : "Idea submission closed" } cardDesc={ getIdea === "idea found" ? isLeader ? "Edit or View Idea" : "View Idea" - : isLeader - ? "Submit an Idea" - : "View Idea" + : "closed" + + } buttonDetails={ getIdea === "idea found" && !team diff --git a/devsoc24-portal-fe/src/components/team/Option.tsx b/devsoc24-portal-fe/src/components/team/Option.tsx index 84ed936..f4c96a4 100644 --- a/devsoc24-portal-fe/src/components/team/Option.tsx +++ b/devsoc24-portal-fe/src/components/team/Option.tsx @@ -1,14 +1,10 @@ -import { - DialogContent, - DialogTitle, -} from "@/components/ui/dialog"; - +import { DialogContent, DialogTitle } from "@/components/ui/dialog"; function Choice() { return ( <> - - You must join or create a team first. + + Idea submission Closed. {/*