Skip to content

Commit

Permalink
chore: moving paths for some examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnguyen521 committed Jun 6, 2024
1 parent 8c4a3b7 commit 1615f6d
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 410 deletions.
47 changes: 25 additions & 22 deletions apps/www/app/(app)/examples/forms/account/account-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { Calendar } from "@/registry/new-york/ui/calendar"
import {
Command,
CommandEmpty,
CommandList,
CommandGroup,
CommandInput,
CommandItem,
Expand Down Expand Up @@ -180,28 +181,30 @@ export function AccountForm() {
<PopoverContent className="w-[200px] p-0">
<Command>
<CommandInput placeholder="Search language..." />
<CommandEmpty>No language found.</CommandEmpty>
<CommandGroup>
{languages.map((language) => (
<CommandItem
value={language.label}
key={language.value}
onSelect={() => {
form.setValue("language", language.value)
}}
>
<CheckIcon
className={cn(
"mr-2 h-4 w-4",
language.value === field.value
? "opacity-100"
: "opacity-0"
)}
/>
{language.label}
</CommandItem>
))}
</CommandGroup>
<CommandList>
<CommandEmpty>No language found.</CommandEmpty>
<CommandGroup>
{languages.map((language) => (
<CommandItem
value={language.label}
key={language.value}
onSelect={() => {
form.setValue("language", language.value)
}}
>
<CheckIcon
className={cn(
"mr-2 h-4 w-4",
language.value === field.value
? "opacity-100"
: "opacity-0"
)}
/>
{language.label}
</CommandItem>
))}
</CommandGroup>
</CommandList>
</Command>
</PopoverContent>
</Popover>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function ModelItem({ model, isSelected, onSelect, onPeek }: ModelItemProps) {
key={model.id}
onSelect={onSelect}
ref={ref}
className="aria-selected:bg-primary aria-selected:text-primary-foreground"
className="aria-[selected='true']:bg-primary aria-[selected='true']:text-primary-foreground"
>
{model.name}
<CheckIcon
Expand Down
222 changes: 0 additions & 222 deletions apps/www/app/examples/forms/account/account-form.tsx

This file was deleted.

Loading

0 comments on commit 1615f6d

Please sign in to comment.