Update Owliver language and suggestions
This commit is contained in:
@@ -5,6 +5,7 @@ import { cn } from '@/lib/utils';
|
||||
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { SearchInput } from '@/components/ds/SearchInput';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
/**
|
||||
* MultiSelect — pick several values from a list.
|
||||
@@ -27,6 +28,7 @@ export function MultiSelect({
|
||||
align = 'start',
|
||||
emptyMessage = 'No options',
|
||||
}: DsProps) {
|
||||
const { t } = useTranslation();
|
||||
const [open, setOpen] = React.useState(false);
|
||||
const [query, setQuery] = React.useState('');
|
||||
|
||||
@@ -112,7 +114,7 @@ export function MultiSelect({
|
||||
<SearchInput
|
||||
value={query}
|
||||
onChange={setQuery}
|
||||
placeholder="Filter options"
|
||||
placeholder={t('multiSelect.filterOptions')}
|
||||
size="sm"
|
||||
debounce={0}
|
||||
autoFocus
|
||||
@@ -163,7 +165,7 @@ export function MultiSelect({
|
||||
onClick={() => onChange?.([])}
|
||||
className="w-full rounded-md px-2 py-1.5 text-body-sm text-ink-3 hover:bg-surface-sunken hover:text-ink-1 transition-colors focus-ring-inset"
|
||||
>
|
||||
Clear selection
|
||||
{t('multiSelect.clearSelection')}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user