From 58562dc4b7b01d3009f4d9f9df7f7f1ae6a6a8c6 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:15:21 +0530 Subject: [PATCH] fix: ui improvement and bug fixes (#2105) * chore: workspace level typo fix * fix: setting opacity fix --- .../core/modals/existing-issues-list-modal.tsx | 2 +- web/components/issues/parent-issues-list-modal.tsx | 2 +- .../projects/[projectId]/settings/index.tsx | 2 +- web/pages/[workspaceSlug]/settings/index.tsx | 12 +++++------- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/web/components/core/modals/existing-issues-list-modal.tsx b/web/components/core/modals/existing-issues-list-modal.tsx index 5a9f68d8b..ed3902a4a 100644 --- a/web/components/core/modals/existing-issues-list-modal.tsx +++ b/web/components/core/modals/existing-issues-list-modal.tsx @@ -212,7 +212,7 @@ export const ExistingIssuesListModal: React.FC = ({ onClick={() => setIsWorkspaceLevel((prevData) => !prevData)} className="flex-shrink-0" > - workspace level + Workspace Level diff --git a/web/components/issues/parent-issues-list-modal.tsx b/web/components/issues/parent-issues-list-modal.tsx index 62091511a..a29fa6521 100644 --- a/web/components/issues/parent-issues-list-modal.tsx +++ b/web/components/issues/parent-issues-list-modal.tsx @@ -136,7 +136,7 @@ export const ParentIssuesListModal: React.FC = ({ onClick={() => setIsWorkspaceLevel((prevData) => !prevData)} className="flex-shrink-0" > - workspace level + Workspace Level diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/settings/index.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/settings/index.tsx index 882bdb41e..a178e28fa 100644 --- a/web/pages/[workspaceSlug]/projects/[projectId]/settings/index.tsx +++ b/web/pages/[workspaceSlug]/projects/[projectId]/settings/index.tsx @@ -187,7 +187,7 @@ const GeneralSettings: NextPage = () => { />
-
+

Icon & Name

diff --git a/web/pages/[workspaceSlug]/settings/index.tsx b/web/pages/[workspaceSlug]/settings/index.tsx index 407f9b402..bd7ea1bd9 100644 --- a/web/pages/[workspaceSlug]/settings/index.tsx +++ b/web/pages/[workspaceSlug]/settings/index.tsx @@ -90,9 +90,8 @@ const WorkspaceSettings: NextPage = () => { await workspaceService .updateWorkspace(activeWorkspace.slug, payload, user) .then((res) => { - mutate( - USER_WORKSPACES, - (prevData) => prevData?.map((workspace) => (workspace.id === res.id ? res : workspace)) + mutate(USER_WORKSPACES, (prevData) => + prevData?.map((workspace) => (workspace.id === res.id ? res : workspace)) ); mutate(WORKSPACE_DETAILS(workspaceSlug as string), (prevData) => { if (!prevData) return prevData; @@ -125,9 +124,8 @@ const WorkspaceSettings: NextPage = () => { title: "Success!", message: "Workspace picture removed successfully.", }); - mutate( - USER_WORKSPACES, - (prevData) => prevData?.map((workspace) => (workspace.id === res.id ? res : workspace)) + mutate(USER_WORKSPACES, (prevData) => + prevData?.map((workspace) => (workspace.id === res.id ? res : workspace)) ); mutate(WORKSPACE_DETAILS(workspaceSlug as string), (prevData) => { if (!prevData) return prevData; @@ -183,7 +181,7 @@ const WorkspaceSettings: NextPage = () => {
{activeWorkspace ? ( -
+

Logo