forked from github/plane
[WEB-851] chore: update all instances of Dashboard
with Home
. (#4085)
This commit is contained in:
parent
35ca495f40
commit
478535422b
@ -1,6 +1,6 @@
|
|||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { useTheme } from "next-themes";
|
import { useTheme } from "next-themes";
|
||||||
import { LayoutGrid, Zap } from "lucide-react";
|
import { Home, Zap } from "lucide-react";
|
||||||
// images
|
// images
|
||||||
import githubBlackImage from "/public/logos/github-black.png";
|
import githubBlackImage from "/public/logos/github-black.png";
|
||||||
import githubWhiteImage from "/public/logos/github-white.png";
|
import githubWhiteImage from "/public/logos/github-white.png";
|
||||||
@ -25,9 +25,7 @@ export const WorkspaceDashboardHeader = () => {
|
|||||||
<Breadcrumbs>
|
<Breadcrumbs>
|
||||||
<Breadcrumbs.BreadcrumbItem
|
<Breadcrumbs.BreadcrumbItem
|
||||||
type="text"
|
type="text"
|
||||||
link={
|
link={<BreadcrumbLink label="Home" icon={<Home className="h-4 w-4 text-custom-text-300" />} />}
|
||||||
<BreadcrumbLink label="Dashboard" icon={<LayoutGrid className="h-4 w-4 text-custom-text-300" />} />
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
</Breadcrumbs>
|
</Breadcrumbs>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,11 +10,11 @@ import {
|
|||||||
ContrastIcon,
|
ContrastIcon,
|
||||||
FileText,
|
FileText,
|
||||||
LayersIcon,
|
LayersIcon,
|
||||||
LayoutGrid,
|
|
||||||
PenSquare,
|
PenSquare,
|
||||||
Search,
|
Search,
|
||||||
Settings,
|
Settings,
|
||||||
Bell,
|
Bell,
|
||||||
|
Home,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { IWorkspace } from "@plane/types";
|
import { IWorkspace } from "@plane/types";
|
||||||
import { Avatar, DiceIcon, PhotoFilterIcon } from "@plane/ui";
|
import { Avatar, DiceIcon, PhotoFilterIcon } from "@plane/ui";
|
||||||
@ -26,8 +26,8 @@ import projectEmoji from "public/emoji/project-emoji.svg";
|
|||||||
|
|
||||||
const workspaceLinks = [
|
const workspaceLinks = [
|
||||||
{
|
{
|
||||||
Icon: LayoutGrid,
|
Icon: Home,
|
||||||
name: "Dashboard",
|
name: "Home",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Icon: BarChart2,
|
Icon: BarChart2,
|
||||||
|
@ -14,7 +14,7 @@ import { NextPageWithLayout } from "@/lib/types";
|
|||||||
const WorkspacePage: NextPageWithLayout = observer(() => {
|
const WorkspacePage: NextPageWithLayout = observer(() => {
|
||||||
const { currentWorkspace } = useWorkspace();
|
const { currentWorkspace } = useWorkspace();
|
||||||
// derived values
|
// derived values
|
||||||
const pageTitle = currentWorkspace?.name ? `${currentWorkspace?.name} - Dashboard` : undefined;
|
const pageTitle = currentWorkspace?.name ? `${currentWorkspace?.name} - Home` : undefined;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -220,7 +220,7 @@ const UserInvitationsPage: NextPageWithLayout = observer(() => {
|
|||||||
description="You can see here if someone invites you to a workspace."
|
description="You can see here if someone invites you to a workspace."
|
||||||
image={emptyInvitation}
|
image={emptyInvitation}
|
||||||
primaryButton={{
|
primaryButton={{
|
||||||
text: "Back to dashboard",
|
text: "Back to home",
|
||||||
onClick: () => router.push("/"),
|
onClick: () => router.push("/"),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -81,7 +81,7 @@ const WorkspaceInvitationPage: NextPageWithLayout = observer(() => {
|
|||||||
title={`You are already a member of ${invitationDetail.workspace.name}`}
|
title={`You are already a member of ${invitationDetail.workspace.name}`}
|
||||||
description="Your workspace is where you'll create projects, collaborate on your issues, and organize different streams of work in your Plane account."
|
description="Your workspace is where you'll create projects, collaborate on your issues, and organize different streams of work in your Plane account."
|
||||||
>
|
>
|
||||||
<EmptySpaceItem Icon={Boxes} title="Continue to Dashboard" href="/" />
|
<EmptySpaceItem Icon={Boxes} title="Continue to home" href="/" />
|
||||||
</EmptySpace>
|
</EmptySpace>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
@ -105,7 +105,7 @@ const WorkspaceInvitationPage: NextPageWithLayout = observer(() => {
|
|||||||
{!currentUser ? (
|
{!currentUser ? (
|
||||||
<EmptySpaceItem Icon={User2} title="Sign in to continue" href="/" />
|
<EmptySpaceItem Icon={User2} title="Sign in to continue" href="/" />
|
||||||
) : (
|
) : (
|
||||||
<EmptySpaceItem Icon={Boxes} title="Continue to Dashboard" href="/" />
|
<EmptySpaceItem Icon={Boxes} title="Continue to home" href="/" />
|
||||||
)}
|
)}
|
||||||
<EmptySpaceItem Icon={Star} title="Star us on GitHub" href="https://github.com/makeplane" />
|
<EmptySpaceItem Icon={Star} title="Star us on GitHub" href="https://github.com/makeplane" />
|
||||||
<EmptySpaceItem
|
<EmptySpaceItem
|
||||||
|
Loading…
Reference in New Issue
Block a user