fix: minor ui fixes (#488)
This commit is contained in:
parent
283950c8e2
commit
2e346158ba
13 changed files with 305 additions and 202 deletions
|
|
@ -32,6 +32,7 @@ import {
|
|||
// types
|
||||
import type { NextPage, GetServerSidePropsContext } from "next";
|
||||
import type { IUser } from "types";
|
||||
import { useRouter } from "next/dist/client/router";
|
||||
|
||||
const defaultValues: Partial<IUser> = {
|
||||
avatar: "",
|
||||
|
|
@ -45,6 +46,9 @@ const Profile: NextPage = () => {
|
|||
const [isRemoving, setIsRemoving] = useState(false);
|
||||
const [isImageUploadModalOpen, setIsImageUploadModalOpen] = useState(false);
|
||||
|
||||
const router = useRouter();
|
||||
const { workspaceSlug } = router.query;
|
||||
|
||||
const {
|
||||
register,
|
||||
handleSubmit,
|
||||
|
|
@ -131,7 +135,7 @@ const Profile: NextPage = () => {
|
|||
title: "Assigned Issues",
|
||||
number: assignedIssuesLength,
|
||||
description: "View your workspace invitations.",
|
||||
href: "/invitations",
|
||||
href: `/${workspaceSlug}/me/my-issues`,
|
||||
},
|
||||
{
|
||||
icon: UserPlusIcon,
|
||||
|
|
|
|||
|
|
@ -82,10 +82,10 @@ const ProjectViews: NextPage = () => {
|
|||
/>
|
||||
{views ? (
|
||||
views.length > 0 ? (
|
||||
<div className="rounded-md border">
|
||||
<div className="rounded-[10px] border">
|
||||
{views.map((view) => (
|
||||
<div
|
||||
className="flex items-center justify-between rounded-md border-b bg-white p-4"
|
||||
className="flex items-center justify-between border-b bg-white p-4 first:rounded-t-[10px] last:rounded-b-[10px]"
|
||||
key={view.id}
|
||||
>
|
||||
<Link href={`/${workspaceSlug}/projects/${projectId}/views/${view.id}`}>
|
||||
|
|
@ -110,7 +110,7 @@ const ProjectViews: NextPage = () => {
|
|||
<EmptyState
|
||||
type="view"
|
||||
title="Create New View"
|
||||
description="Views are smaller, focused projects that help you group and organize issues within a specific time frame."
|
||||
description="Views aid in saving your issues by applying various filters and grouping options."
|
||||
imgURL={emptyView}
|
||||
action={() => setIsCreateViewModalOpen(true)}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue