From c9586bfdcf4f1b8aad8c7ee35463d6f541573830 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Tue, 28 May 2024 11:49:14 +0530 Subject: [PATCH] style: fix all empty states size of inconsistency. (#4613) --- web/components/issues/issue-layouts/empty-states/cycle.tsx | 2 -- .../issues/issue-layouts/empty-states/draft-issues.tsx | 2 -- .../issues/issue-layouts/empty-states/project-issues.tsx | 2 -- .../issues/issue-layouts/roots/all-issue-layout-root.tsx | 3 +-- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/web/components/issues/issue-layouts/empty-states/cycle.tsx b/web/components/issues/issue-layouts/empty-states/cycle.tsx index 04ce2cb50..5f1984516 100644 --- a/web/components/issues/issue-layouts/empty-states/cycle.tsx +++ b/web/components/issues/issue-layouts/empty-states/cycle.tsx @@ -68,7 +68,6 @@ export const CycleEmptyState: React.FC = observer((props) => { ? EmptyStateType.PROJECT_EMPTY_FILTER : EmptyStateType.PROJECT_CYCLE_NO_ISSUES; const additionalPath = isCompletedAndEmpty ? undefined : activeLayout ?? "list"; - const emptyStateSize = isEmptyFilters ? "lg" : "sm"; return ( <> @@ -84,7 +83,6 @@ export const CycleEmptyState: React.FC = observer((props) => { { diff --git a/web/components/issues/issue-layouts/empty-states/draft-issues.tsx b/web/components/issues/issue-layouts/empty-states/draft-issues.tsx index 07cb70ceb..7fc6811c8 100644 --- a/web/components/issues/issue-layouts/empty-states/draft-issues.tsx +++ b/web/components/issues/issue-layouts/empty-states/draft-issues.tsx @@ -41,14 +41,12 @@ export const ProjectDraftEmptyState: React.FC = observer(() => { const emptyStateType = issueFilterCount > 0 ? EmptyStateType.PROJECT_DRAFT_EMPTY_FILTER : EmptyStateType.PROJECT_DRAFT_NO_ISSUES; const additionalPath = issueFilterCount > 0 ? activeLayout ?? "list" : undefined; - const emptyStateSize = issueFilterCount > 0 ? "lg" : "sm"; return (
0 ? handleClearAllFilters : undefined} />
diff --git a/web/components/issues/issue-layouts/empty-states/project-issues.tsx b/web/components/issues/issue-layouts/empty-states/project-issues.tsx index 8b496e961..5682eaf77 100644 --- a/web/components/issues/issue-layouts/empty-states/project-issues.tsx +++ b/web/components/issues/issue-layouts/empty-states/project-issues.tsx @@ -43,14 +43,12 @@ export const ProjectEmptyState: React.FC = observer(() => { const emptyStateType = issueFilterCount > 0 ? EmptyStateType.PROJECT_EMPTY_FILTER : EmptyStateType.PROJECT_NO_ISSUES; const additionalPath = issueFilterCount > 0 ? activeLayout ?? "list" : undefined; - const emptyStateSize = issueFilterCount > 0 ? "lg" : "sm"; return (
0 ? undefined diff --git a/web/components/issues/issue-layouts/roots/all-issue-layout-root.tsx b/web/components/issues/issue-layouts/roots/all-issue-layout-root.tsx index 51188fe72..93a275f39 100644 --- a/web/components/issues/issue-layouts/roots/all-issue-layout-root.tsx +++ b/web/components/issues/issue-layouts/roots/all-issue-layout-root.tsx @@ -154,12 +154,11 @@ export const AllIssueLayoutRoot: React.FC = observer(() => { return (
-
+
{issueIds.length === 0 ? ( 0 ? currentView !== "custom-view" && currentView !== "subscribed"