Skip to content

Commit bb1889f

Browse files
committed
move shadcn lib thing into utils
1 parent 3392ae3 commit bb1889f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

components/ui/popover/popover-content.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup lang="ts">
2-
import { cn } from "@/lib/utils"
32
import {
43
PopoverContent,
54
type PopoverContentEmits,
@@ -9,6 +8,9 @@ import {
98
} from "radix-vue"
109
import { type HTMLAttributes, computed } from "vue"
1110
11+
// nuxt auto-import doesn't play nice with whatever vscode is thinking
12+
const cn = twMerge
13+
1214
defineOptions({
1315
inheritAttrs: false,
1416
})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type ClassValue, clsx } from "clsx"
22
import { twMerge } from "tailwind-merge"
33

4-
export function cn(...inputs: ClassValue[]) {
4+
export default (...inputs: ClassValue[]) => {
55
return twMerge(clsx(inputs))
66
}

0 commit comments

Comments
 (0)