chore: loading state for all layouts (#2588)

* chore: add loading states to layouts

* chore: don't show count for 0 inbox issues
This commit is contained in:
Aaryan Khandelwal 2023-11-01 20:24:57 +05:30 committed by GitHub
parent 1a46c6c399
commit 36152ea2fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 52 additions and 3 deletions

View file

@ -174,9 +174,11 @@ export const ProjectIssuesHeader: React.FC = observer(() => {
<a>
<Button variant="neutral-primary" size="sm" className="relative">
Inbox
<span className="absolute -top-1.5 -right-1.5 h-4 w-4 rounded-full text-custom-text-100 bg-custom-sidebar-background-80 border border-custom-sidebar-border-200">
{inboxDetails.pending_issue_count}
</span>
{inboxDetails.pending_issue_count > 0 && (
<span className="absolute -top-1.5 -right-1.5 h-4 w-4 rounded-full text-custom-text-100 bg-custom-sidebar-background-80 border border-custom-sidebar-border-200">
{inboxDetails.pending_issue_count}
</span>
)}
</Button>
</a>
</Link>