diff --git a/apps/web/src/views/board/index.tsx b/apps/web/src/views/board/index.tsx index beedd806..9fd69809 100644 --- a/apps/web/src/views/board/index.tsx +++ b/apps/web/src/views/board/index.tsx @@ -375,7 +375,7 @@ export default function BoardPage() { /> member.user !== null) ?? []} position="left" isLoading={!boardData} /> diff --git a/apps/web/src/views/boards/index.tsx b/apps/web/src/views/boards/index.tsx index 85163bc0..4d572792 100644 --- a/apps/web/src/views/boards/index.tsx +++ b/apps/web/src/views/boards/index.tsx @@ -13,7 +13,7 @@ import { ImportBoardsForm } from "./components/ImportBoardsForm"; import { NewBoardForm } from "./components/NewBoardForm"; export default function BoardsPage() { - const { openModal, modalContentType } = useModal(); + const { openModal, modalContentType, isOpen } = useModal(); const { workspace, hasLoaded } = useWorkspace(); if (hasLoaded && !workspace.publicId) openModal("NEW_WORKSPACE"); @@ -50,12 +50,35 @@ export default function BoardsPage() { - - {modalContentType === "NEW_FEEDBACK" && } - {modalContentType === "NEW_BOARD" && } - {modalContentType === "IMPORT_BOARDS" && } - {modalContentType === "NEW_WORKSPACE" && } - + <> + + + + + + + + + + + + + + + +
diff --git a/apps/web/src/views/card/index.tsx b/apps/web/src/views/card/index.tsx index f7b9e5ef..1634bee2 100644 --- a/apps/web/src/views/card/index.tsx +++ b/apps/web/src/views/card/index.tsx @@ -142,6 +142,7 @@ export default function CardPage() { openModal, getModalState, clearModalState, + isOpen, } = useModal(); const { showPopup } = usePopup(); const { workspace } = useWorkspace(); @@ -305,47 +306,86 @@ export default function CardPage() {
- - {modalContentType === "NEW_FEEDBACK" && } - {modalContentType === "NEW_LABEL" && ( + <> + + + + + - )} - {modalContentType === "EDIT_LABEL" && ( + + + - )} - {modalContentType === "DELETE_LABEL" && ( + + + - )} - {modalContentType === "DELETE_CARD" && ( + + + - )} - {modalContentType === "DELETE_COMMENT" && ( + + + - )} - {modalContentType === "NEW_WORKSPACE" && } - {modalContentType === "ADD_CHECKLIST" && ( + + + + + + + - )} - {modalContentType === "DELETE_CHECKLIST" && ( + + + - )} - + + ); diff --git a/apps/web/src/views/members/index.tsx b/apps/web/src/views/members/index.tsx index 1a621d2e..a3501122 100644 --- a/apps/web/src/views/members/index.tsx +++ b/apps/web/src/views/members/index.tsx @@ -19,7 +19,7 @@ import { DeleteMemberConfirmation } from "./components/DeleteMemberConfirmation" import { InviteMemberForm } from "./components/InviteMemberForm"; export default function MembersPage() { - const { modalContentType, openModal } = useModal(); + const { modalContentType, openModal, isOpen } = useModal(); const { workspace } = useWorkspace(); const { data, isLoading } = api.workspace.byId.useQuery( @@ -222,12 +222,35 @@ export default function MembersPage() { - - {modalContentType === "NEW_FEEDBACK" && } - {modalContentType === "NEW_WORKSPACE" && } - {modalContentType === "INVITE_MEMBER" && } - {modalContentType === "REMOVE_MEMBER" && } - + <> + + + + + + + + + + + + + + + + ); diff --git a/apps/web/src/views/settings/index.tsx b/apps/web/src/views/settings/index.tsx index 8e9e7d1d..356c886f 100644 --- a/apps/web/src/views/settings/index.tsx +++ b/apps/web/src/views/settings/index.tsx @@ -26,7 +26,7 @@ import UpdateWorkspaceNameForm from "./components/UpdateWorkspaceNameForm"; import UpdateWorkspaceUrlForm from "./components/UpdateWorkspaceUrlForm"; export default function SettingsPage() { - const { modalContentType, openModal } = useModal(); + const { modalContentType, openModal, isOpen } = useModal(); const { workspace } = useWorkspace(); const utils = api.useUtils(); const { showPopup } = usePopup(); @@ -322,22 +322,49 @@ export default function SettingsPage() { - - {modalContentType === "NEW_FEEDBACK" && } - {modalContentType === "NEW_WORKSPACE" && } - {modalContentType === "DELETE_WORKSPACE" && ( + <> + + + + + + + + + - )} - {modalContentType === "UPDATE_WORKSPACE_URL" && ( + + + - )} - {modalContentType === "DELETE_ACCOUNT" && ( + + + - )} - {modalContentType === "CHANGE_PASSWORD" && ( + + + - )} - + +