diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index f4a0038b..da9e7ada 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -78,14 +78,13 @@ Together's progress and milestones are split into separate, distinct issues. You > 💡 Issues tagged with `Good 100Devs First Try` are beginner-level issues that are great for fellow 100Devs. - Currently we have the way to discover issues using Issue Tab. + ### Issues Tab  The [Issues tab](https://github.com/Together-100Devs/Together/issues) contains all of the issues that are currently in progress, planned to be worked on, or need further review. - ## Editing code and submitting a pull request Use the following process to make changes after an issue has been assigned to you. @@ -128,8 +127,8 @@ Now that you have a personal fork of the project on GitHub, you will be able to Now that you have the copy, you will need access to the feature branch related to your issue to create a local working branch to write your code. -1. Set upstream to track the remote repository containing the original repo. (Not just your fork.) - +1. Set upstream to track the remote repository containing the original repo. (Not just your fork.) + 2. Use this command to fetch the list of remote branches. `git fetch upstream` diff --git a/client/src/contexts/ModalContext/useProvideModal.jsx b/client/src/contexts/ModalContext/useProvideModal.jsx index ff09b9a8..1a67e828 100644 --- a/client/src/contexts/ModalContext/useProvideModal.jsx +++ b/client/src/contexts/ModalContext/useProvideModal.jsx @@ -5,6 +5,7 @@ import { useState } from "react"; const useProvideModal = () => { const [isOpen, setIsOpen] = useState(false); const [activeEvent, setActiveEvent] = useState(null); + const [isEditing, setIsEditing] = useState(false); const handleOpen = () => { setIsOpen(true); @@ -12,6 +13,7 @@ const useProvideModal = () => { const handleClose = () => { setIsOpen(false); + setIsEditing(false); }; const handleToggle = () => { @@ -25,6 +27,8 @@ const useProvideModal = () => { handleToggle, activeEvent, setActiveEvent, + isEditing, + setIsEditing, }; }; diff --git a/client/src/features/form/FormCreateEvent.jsx b/client/src/features/form/FormCreateEvent.jsx index ce0ac0a8..86332e46 100644 --- a/client/src/features/form/FormCreateEvent.jsx +++ b/client/src/features/form/FormCreateEvent.jsx @@ -1,5 +1,6 @@ import { useFormContext } from "../../contexts/FormContext"; import { useAuthContext } from "../../contexts/AuthContext"; +import FormError from "../form/FormError"; export default function FormCreateEvent() { const auth = useAuthContext(); @@ -19,26 +20,7 @@ export default function FormCreateEvent() { return (