Compare commits
No commits in common. "a9257c2825efdca182ad71d1dee9d485404e3d2e" and "c3ee490ce50de7cf610498fd91b4a1b9e9d0ff3d" have entirely different histories.
a9257c2825
...
c3ee490ce5
|
@ -2,6 +2,7 @@
|
|||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@import "rose-pine.css";
|
||||
|
||||
/* @layer base { */
|
||||
/* :root { */
|
||||
|
|
|
@ -32,8 +32,6 @@ import {
|
|||
TableRow,
|
||||
} from "@/components/ui/table"
|
||||
import { EyeIcon } from "lucide-react"
|
||||
import { usePathname } from "next/navigation"
|
||||
import { useRouter } from "next/navigation"
|
||||
|
||||
interface DataTableProps<TData, TValue> {
|
||||
columns: ColumnDef<TData, TValue>[]
|
||||
|
@ -68,8 +66,7 @@ export function DataTable<TData, TValue>({
|
|||
columnVisibility,
|
||||
},
|
||||
})
|
||||
const pathname = usePathname()
|
||||
const router = useRouter()
|
||||
|
||||
const [filterBy, setFilterBy] = useState(table.getAllColumns()[0])
|
||||
return (<>
|
||||
<div className="flex justify-between py-4">
|
||||
|
@ -104,9 +101,6 @@ export function DataTable<TData, TValue>({
|
|||
className="max-w-sm"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Button onClick={() => router.push(pathname + "/create")}>Create new {pathname.slice(1)}</Button>
|
||||
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button variant="outline" className="justify-self-end">
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
module.exports = {
|
||||
darkMode: ["class"],
|
||||
content: [
|
||||
"./src/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
"./pages/**/*.{ts,tsx}",
|
||||
"./components/**/*.{ts,tsx}",
|
||||
"./app/**/*.{ts,tsx}",
|
||||
"./src/**/*.{ts,tsx}",
|
||||
],
|
||||
prefix: "",
|
||||
theme: {
|
||||
|
|
Loading…
Reference in New Issue