chore: show inbox applied filters list (#1334)

This commit is contained in:
Aaryan Khandelwal 2023-06-21 17:32:56 +05:30 committed by GitHub
parent 7d29a89eed
commit a0ae569a68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 206 additions and 23 deletions

View file

@ -3,7 +3,7 @@ import { useRouter } from "next/router";
// hooks
import useInboxView from "hooks/use-inbox-view";
// components
import { InboxIssueCard } from "components/inbox";
import { InboxIssueCard, InboxFiltersList } from "components/inbox";
// ui
import { Loader } from "components/ui";
@ -14,10 +14,11 @@ export const IssuesListSidebar = () => {
const { issues: inboxIssues } = useInboxView();
return (
<>
<div className="h-full flex flex-col overflow-hidden">
<InboxFiltersList />
{inboxIssues ? (
inboxIssues.length > 0 ? (
<div className="divide-y divide-brand-base overflow-auto h-full pb-10">
<div className="divide-y divide-brand-base overflow-auto h-full">
{inboxIssues.map((issue) => (
<InboxIssueCard
key={issue.id}
@ -39,6 +40,6 @@ export const IssuesListSidebar = () => {
<Loader.Item height="50px" />
</Loader>
)}
</>
</div>
);
};