-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
17 changed files
with
158 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/[locale]/(routes)/components/menu-items/Administration.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Wrench } from "lucide-react"; | ||
import Link from "next/link"; | ||
import { usePathname } from "next/navigation"; | ||
|
||
type Props = { | ||
open: boolean; | ||
}; | ||
|
||
const AdministrationMenu = ({ open }: Props) => { | ||
const pathname = usePathname(); | ||
const isPath = pathname.includes("admin"); | ||
return ( | ||
<div className="flex flex-row items-center mx-auto p-2"> | ||
<Link | ||
href={"/admin"} | ||
className={`flex gap-2 p-2 ${isPath ? "text-muted-foreground" : null}`} | ||
> | ||
<Wrench className="w-6" /> | ||
<span className={open ? "" : "hidden"}>Administration</span> | ||
</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AdministrationMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Home } from "lucide-react"; | ||
import Link from "next/link"; | ||
import { usePathname } from "next/navigation"; | ||
|
||
import React from "react"; | ||
|
||
type Props = { | ||
open: boolean; | ||
}; | ||
|
||
const DashboardMenu = ({ open }: Props) => { | ||
const pathname = usePathname(); | ||
const isPath = pathname.includes("nevermind"); | ||
return ( | ||
<div className="flex flex-row items-center mx-auto p-2"> | ||
<Link | ||
href={"/"} | ||
className={`flex gap-2 p-2 ${isPath ? "text-muted-foreground" : null}`} | ||
> | ||
<Home className="w-6" /> | ||
<span className={open ? "" : "hidden"}>Dashboard</span> | ||
</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DashboardMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
ca81483
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nextcrm-sunstream – ./
nextcrm-sunstream-e-osvc.vercel.app
nextcrm-sunstream.vercel.app
sunstream.nextcrm.io
nextcrm-sunstream-git-main-e-osvc.vercel.app
ca81483
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nextcrm-documex – ./
nextcrm-documex-git-main-e-osvc.vercel.app
nextcrm-documex-e-osvc.vercel.app
nextcrm-documex.vercel.app
documex.nextcrm.io
ca81483
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nextcrm-demo – ./
nextcrm-demo-git-main-e-osvc.vercel.app
nextcrm-demo-e-osvc.vercel.app
demo.nextcrm.io
ca81483
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nextcrm-test – ./
nextcrm-test-e-osvc.vercel.app
nextcrm-test-git-main-e-osvc.vercel.app
test.nextcrm.io
ca81483
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nextcrm-softbase – ./
nextcrm-softbase-e-osvc.vercel.app
softbase.nextcrm.io
nextcrm-softbase.vercel.app
nextcrm-softbase-git-main-e-osvc.vercel.app
ca81483
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nextcrm-others – ./
others.nextcrm.io
nextcrm-others-e-osvc.vercel.app
nextcrm-others-git-main-e-osvc.vercel.app