feat(select): update newyork to use radix icons

This commit is contained in:
Iain Wandless
2023-10-16 10:09:24 +01:00
parent f68798e50b
commit 11c1bc2cb9

View File

@@ -1,9 +1,13 @@
"use client"
import * as React from "react"
import { CaretSortIcon, CheckIcon } from "@radix-ui/react-icons"
import {
CaretSortIcon,
CheckIcon,
ChevronDownIcon,
ChevronUpIcon,
} from "@radix-ui/react-icons"
import * as SelectPrimitive from "@radix-ui/react-select"
import { ChevronDown, ChevronUp } from "lucide-react"
import { cn } from "@/lib/utils"
@@ -55,7 +59,7 @@ const SelectContent = React.forwardRef<
className
)}
>
<ChevronUp />
<ChevronUpIcon />
</SelectPrimitive.ScrollUpButton>
<SelectPrimitive.Viewport
className={cn(
@@ -72,7 +76,7 @@ const SelectContent = React.forwardRef<
className
)}
>
<ChevronDown />
<ChevronDownIcon />
</SelectPrimitive.ScrollDownButton>
</SelectPrimitive.Content>
</SelectPrimitive.Portal>