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:
parent
1a46c6c399
commit
36152ea2fa
7 changed files with 52 additions and 3 deletions
|
|
@ -15,6 +15,8 @@ import {
|
|||
ModuleListLayout,
|
||||
ModuleSpreadsheetLayout,
|
||||
} from "components/issues";
|
||||
// ui
|
||||
import { Spinner } from "@plane/ui";
|
||||
|
||||
type Props = {
|
||||
openIssuesListModal: () => void;
|
||||
|
|
@ -53,6 +55,13 @@ export const ModuleLayoutRoot: React.FC<Props> = observer(({ openIssuesListModal
|
|||
|
||||
const issueCount = moduleIssueStore.getIssuesCount;
|
||||
|
||||
if (!moduleIssueStore.getIssues)
|
||||
return (
|
||||
<div className="h-full w-full grid place-items-center">
|
||||
<Spinner />
|
||||
</div>
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="relative w-full h-full flex flex-col overflow-hidden">
|
||||
<ModuleAppliedFiltersRoot />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue