-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(repo): all eslint, prettier, and typecheck errors
- Loading branch information
Showing
38 changed files
with
659 additions
and
571 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
25 changes: 11 additions & 14 deletions
25
apps/nextjs/src/app/(dashboard)/project/[id]/(root)/_components/LastItem.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 |
---|---|---|
@@ -1,23 +1,20 @@ | ||
'use client' | ||
import { usePathname } from "next/navigation"; | ||
"use client"; | ||
|
||
import { memo } from "react"; | ||
import { captilize } from "~/lib/utils"; | ||
import { usePathname } from "next/navigation"; | ||
|
||
import { captilize } from "~/lib/utils"; | ||
|
||
function GetLastBreadCrumb(props: { | ||
id: string | ||
}) { | ||
const { id } = props | ||
const pathname = usePathname() | ||
let ending = pathname[-1] | ||
function GetLastBreadCrumb(props: { id: string }) { | ||
const { id } = props; | ||
const pathname = usePathname(); | ||
let ending = pathname[-1]; | ||
|
||
if (!ending || ending === id) { | ||
ending = "Overview Page" | ||
ending = "Overview Page"; | ||
} | ||
|
||
return ( | ||
<div>{captilize(ending)}</div> | ||
) | ||
return <div>{captilize(ending)}</div>; | ||
} | ||
|
||
export default memo(GetLastBreadCrumb) | ||
export default memo(GetLastBreadCrumb); |
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.