Updated code
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import Link from "next/link"
|
||||||
|
|
||||||
export default function NotFound() {
|
export default function NotFound() {
|
||||||
return (
|
return (
|
||||||
<div className="flex min-h-screen items-center justify-center">
|
<div className="flex min-h-screen items-center justify-center">
|
||||||
@@ -9,12 +11,12 @@ export default function NotFound() {
|
|||||||
<p className="mt-2 text-gray-600 dark:text-gray-400">
|
<p className="mt-2 text-gray-600 dark:text-gray-400">
|
||||||
The link you're looking for doesn't exist or has expired.
|
The link you're looking for doesn't exist or has expired.
|
||||||
</p>
|
</p>
|
||||||
<a
|
<Link
|
||||||
href="/"
|
href="/"
|
||||||
className="mt-6 inline-block rounded-lg bg-blue-600 px-6 py-3 text-white hover:bg-blue-700 transition-colors"
|
className="mt-6 inline-block rounded-lg bg-blue-600 px-6 py-3 text-white hover:bg-blue-700 transition-colors"
|
||||||
>
|
>
|
||||||
Go Home
|
Go Home
|
||||||
</a>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -50,16 +50,6 @@ export function SidebarThemeToggle() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const cycleTheme = () => {
|
|
||||||
if (theme === "light") {
|
|
||||||
setTheme("dark")
|
|
||||||
} else if (theme === "dark") {
|
|
||||||
setTheme("system")
|
|
||||||
} else {
|
|
||||||
setTheme("light")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SidebarMenu>
|
<SidebarMenu>
|
||||||
<SidebarMenuItem>
|
<SidebarMenuItem>
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ export function UrlsDataTable({ data }: UrlsDataTableProps) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const tableColumns = React.useMemo(() => [...columns, actionRow], [])
|
const tableColumns = React.useMemo(() => [...columns, actionRow], [actionRow])
|
||||||
|
|
||||||
const table = useReactTable({
|
const table = useReactTable({
|
||||||
data,
|
data,
|
||||||
|
|||||||
Reference in New Issue
Block a user