Updated code

This commit is contained in:
2025-06-26 23:40:36 +02:00
parent 50be52f08a
commit 14f275f2b8
3 changed files with 5 additions and 13 deletions

View File

@@ -50,16 +50,6 @@ export function SidebarThemeToggle() {
}
}
const cycleTheme = () => {
if (theme === "light") {
setTheme("dark")
} else if (theme === "dark") {
setTheme("system")
} else {
setTheme("light")
}
}
return (
<SidebarMenu>
<SidebarMenuItem>

View File

@@ -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({
data,