Fix/empty state flicker (#3475)
* fix: flicker issue between loader and empty states. * chore: fix `All Issues` tab highlight when we switch between tabs inside all issues.
This commit is contained in:
parent
6c6b764421
commit
f8208b1b5e
9 changed files with 25 additions and 21 deletions
|
|
@ -61,13 +61,13 @@ export const CycleLayoutRoot: React.FC = observer(() => {
|
|||
{cycleStatus === "completed" && <TransferIssues handleClick={() => setTransferIssuesModal(true)} />}
|
||||
<CycleAppliedFiltersRoot />
|
||||
|
||||
{issues?.loader === "init-loader" ? (
|
||||
{issues?.loader === "init-loader" || !issues?.groupedIssueIds ? (
|
||||
<div className="flex h-full w-full items-center justify-center">
|
||||
<Spinner />
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
{!issues?.groupedIssueIds ? (
|
||||
{issues?.groupedIssueIds?.length === 0 ? (
|
||||
<CycleEmptyState
|
||||
workspaceSlug={workspaceSlug.toString()}
|
||||
projectId={projectId.toString()}
|
||||
|
|
|
|||
|
|
@ -51,13 +51,13 @@ export const ModuleLayoutRoot: React.FC = observer(() => {
|
|||
<div className="relative flex h-full w-full flex-col overflow-hidden">
|
||||
<ModuleAppliedFiltersRoot />
|
||||
|
||||
{issues?.loader === "init-loader" ? (
|
||||
{issues?.loader === "init-loader" || !issues?.groupedIssueIds ? (
|
||||
<div className="flex h-full w-full items-center justify-center">
|
||||
<Spinner />
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
{!issues?.groupedIssueIds ? (
|
||||
{issues?.groupedIssueIds?.length === 0 ? (
|
||||
<ModuleEmptyState
|
||||
workspaceSlug={workspaceSlug.toString()}
|
||||
projectId={projectId.toString()}
|
||||
|
|
|
|||
|
|
@ -45,13 +45,13 @@ export const ProjectLayoutRoot: FC = observer(() => {
|
|||
<div className="relative flex h-full w-full flex-col overflow-hidden">
|
||||
<ProjectAppliedFiltersRoot />
|
||||
|
||||
{issues?.loader === "init-loader" ? (
|
||||
{issues?.loader === "init-loader" || !issues?.groupedIssueIds ? (
|
||||
<div className="flex h-full w-full items-center justify-center">
|
||||
<Spinner />
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
{!issues?.groupedIssueIds ? (
|
||||
{issues?.groupedIssueIds?.length === 0 ? (
|
||||
<div className="relative h-full w-full overflow-y-auto">
|
||||
<ProjectEmptyState />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -67,13 +67,13 @@ export const ProjectViewLayoutRoot: React.FC = observer(() => {
|
|||
<div className="relative flex h-full w-full flex-col overflow-hidden">
|
||||
<ProjectViewAppliedFiltersRoot />
|
||||
|
||||
{issues?.loader === "init-loader" ? (
|
||||
{issues?.loader === "init-loader" || !issues?.groupedIssueIds ? (
|
||||
<div className="flex h-full w-full items-center justify-center">
|
||||
<Spinner />
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
{!issues?.groupedIssueIds ? (
|
||||
{issues?.groupedIssueIds?.length === 0 ? (
|
||||
<ProjectViewEmptyState />
|
||||
) : (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue