style: issue list (#798)
* style: issue list * chore: changed the empty state images
This commit is contained in:
parent
b7a7508d5d
commit
3457411c6a
12 changed files with 257 additions and 279 deletions
|
|
@ -5,6 +5,8 @@ import { useRouter } from "next/router";
|
|||
|
||||
// contexts
|
||||
import { useProjectMyMembership, ProjectMemberProvider } from "contexts/project-member.context";
|
||||
// hooks
|
||||
import useIssuesView from "hooks/use-issues-view";
|
||||
// layouts
|
||||
import Container from "layouts/container";
|
||||
import AppHeader from "layouts/app-layout/app-header";
|
||||
|
|
@ -19,6 +21,7 @@ import { PrimaryButton, Spinner } from "components/ui";
|
|||
// icons
|
||||
import { LayerDiagonalIcon } from "components/icons";
|
||||
|
||||
|
||||
type Meta = {
|
||||
title?: string | null;
|
||||
description?: string | null;
|
||||
|
|
@ -58,6 +61,10 @@ const ProjectAuthorizationWrapped: React.FC<Props> = ({
|
|||
const router = useRouter();
|
||||
const { workspaceSlug, projectId } = router.query;
|
||||
|
||||
const {
|
||||
issueView,
|
||||
} = useIssuesView();
|
||||
|
||||
const { loading, error, memberRole: memberType } = useProjectMyMembership();
|
||||
|
||||
const settingsLayout = router.pathname.includes("/settings");
|
||||
|
|
@ -131,7 +138,7 @@ const ProjectAuthorizationWrapped: React.FC<Props> = ({
|
|||
)}
|
||||
<div
|
||||
className={`flex w-full flex-grow flex-col ${
|
||||
noPadding ? "" : settingsLayout ? "p-8 lg:px-28" : "p-8"
|
||||
noPadding || issueView === "list" ? "" : settingsLayout ? "p-8 lg:px-28" : "p-8"
|
||||
} ${
|
||||
bg === "primary" ? "bg-primary" : bg === "secondary" ? "bg-secondary" : "bg-primary"
|
||||
}`}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue