mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: introduce trail api and depreciate old api
This commit is contained in:
parent
ecf4e4d6d9
commit
e14ba02f97
13 changed files with 315 additions and 271 deletions
|
|
@ -10,10 +10,11 @@ import { useRouter, useSearchParams, usePathname } from "next/navigation";
|
|||
import { headers } from "next/headers";
|
||||
import { getOrgFromUri, getUriWithOrg } from "@services/config/config";
|
||||
|
||||
export const Menu = (params : any) => {
|
||||
export const Menu = (props : any ) => {
|
||||
const router = useRouter();
|
||||
const pathname = usePathname();
|
||||
const orgslug = getOrgFromUri();
|
||||
const orgslug = props.orgslug;
|
||||
|
||||
|
||||
return (
|
||||
<GlobalHeader>
|
||||
|
|
@ -41,7 +42,7 @@ export const Menu = (params : any) => {
|
|||
</li>
|
||||
<li>
|
||||
{" "}
|
||||
<Link href={getUriWithOrg(orgslug, "/activity")}>Activity</Link>
|
||||
<Link href={getUriWithOrg(orgslug, "/trail")}>Trail</Link>
|
||||
</li>
|
||||
<li>More</li>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue