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
|
|
@ -14,6 +14,7 @@ import {
|
|||
ProjectSpreadsheetLayout,
|
||||
ProjectEmptyState,
|
||||
} from "components/issues";
|
||||
import { Spinner } from "@plane/ui";
|
||||
|
||||
export const ProjectLayoutRoot: React.FC = observer(() => {
|
||||
const router = useRouter();
|
||||
|
|
@ -33,6 +34,13 @@ export const ProjectLayoutRoot: React.FC = observer(() => {
|
|||
|
||||
const issueCount = issueStore.getIssuesCount;
|
||||
|
||||
if (!issueStore.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">
|
||||
<ProjectAppliedFiltersRoot />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue