add checkout

This commit is contained in:
2025-12-23 10:56:38 -03:00
parent a524666837
commit 6eff69f168
12 changed files with 840 additions and 356 deletions

View File

@@ -25,7 +25,7 @@ interface SearchFilterProps<T> {
onValueChange?: (value: string) => void
requestOptions?: object
placeholder?: string
onChange: (value: T | undefined) => void
onChange: (value: T | null) => void
onSearch: (search: string) => Promise<T[]>
align: 'start' | 'center' | 'end'
children: ({ loading }: { loading: boolean }) => ReactNode
@@ -117,7 +117,7 @@ export function SearchFilter<T>({
variant="ghost"
onClick={() => {
setValue('')
onChange?.(undefined)
onChange?.(null)
setFalse()
mutate([])