fix: add lib/utils.ts for shadcn component imports
STORY: shadcn/ui components expect @/lib/utils to exist for the cn() helper. Our project uses src/lib/, but shadcn creates lib/ at root. COLLABORATION: Created lib/utils.ts with the cn() function to satisfy shadcn imports. This coexists with src/lib/utils.ts - both export the same function. VERIFICATION: - npm run typecheck: PASS
This commit is contained in:
parent
eb933b6c27
commit
9afa3f7bbd
1 changed files with 6 additions and 0 deletions
6
lib/utils.ts
Normal file
6
lib/utils.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { type ClassValue, clsx } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue