Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
refactor: rename dashboard route to app
Browse files Browse the repository at this point in the history
  • Loading branch information
saeidex committed Dec 8, 2024
1 parent 2576aba commit 0a76a02
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 9 deletions.
4 changes: 2 additions & 2 deletions apps/next/src/app/_components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export const LandingHeader = () => {
</Link>
<Link
className="hidden sm:inline"
href={{ pathname: session ? "/dashboard" : "/get-started" }}
href={{ pathname: session ? "/app" : "/get-started" }}
>
<Button>{session ? "Dashboard" : "Get started"}</Button>
<Button>{session ? "Open web app" : "Get started"}</Button>
</Link>
</div>
<LandingNavbar />
Expand Down
4 changes: 2 additions & 2 deletions apps/next/src/app/_components/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ export const CTA = () => {

return (
<div className="space-y-4">
<Link href={{ pathname: session ? "/dashboard" : "/get-started" }}>
<Link href={{ pathname: session ? "/app" : "/get-started" }}>
<Button variant={"withIcon"}>
<IconArrowRight stroke={2} size={20} />
{session ? "Dashboard" : "Track now"}
{session ? "Open web app" : "Track now"}
</Button>
</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/next/src/app/_components/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ReactNode } from "react";
import { HookProviders } from "@ubus/hooks/hook-providers";
import { MqttProvider } from "@ubus/mqtt";

export const DashboardProviders = ({
export const AppProviders = ({
children,
}: {
children: ReactNode | JSX.Element;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import type { ReactNode } from "react";

import { DashboardProviders } from "../_components/providers";
import { AppProviders } from "../_components/providers";

interface DashboardLayoutProps {
children: ReactNode | JSX.Element;
}

const DashboardLayout = (props: DashboardLayoutProps) => {
return (
<DashboardProviders>
<AppProviders>
<main className="h-full w-full">{props.children}</main>
</DashboardProviders>
</AppProviders>
);
};

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/configs/src/footer-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const footerMenuItems: readonly IMenuItem[] = [
links: [
{
label: "Settings",
href: "/dashboard/settings",
href: "/app/settings",
},
{
label: "Contact",
Expand Down
25 changes: 25 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a76a02

Please sign in to comment.