Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update paths for shadcn
  • Loading branch information
jaaydenh committed Nov 5, 2024
commit 287a67a59ee77650fb4471496052144d9fe79abf
10 changes: 5 additions & 5 deletions site/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
"components": "/components",
"utils": "/utils",
"ui": "/components/ui",
"lib": "/lib",
"hooks": "/hooks"
}
}
2 changes: 1 addition & 1 deletion site/src/components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Slot } from "@radix-ui/react-slot";
import { type VariantProps, cva } from "class-variance-authority";
import * as React from "react";

import { cn } from "@/lib/utils";
import { cn } from "utils/cn";

const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 font-semibold border-solid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from "@/components/ui/button";
import { Button } from "components/ui/button";
import { ExternalLinkIcon } from "@radix-ui/react-icons";
import type { FC } from "react";
import { docs } from "utils/docs";
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion site/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default defineConfig({
testHelpers: path.resolve(__dirname, "./src/testHelpers"),
theme: path.resolve(__dirname, "./src/theme"),
utils: path.resolve(__dirname, "./src/utils"),
"@": path.resolve(__dirname, "./src"),
},
},
});