fix(searchBarV2): translations and genre none selection

This commit is contained in:
danis
2023-12-06 20:01:49 +01:00
parent 647f7b2676
commit cba8815cfc
2 changed files with 529 additions and 566 deletions

View File

@@ -7,6 +7,7 @@ import { AddSquare, CloseCircle, SearchNormal1 } from 'iconsax-react-native';
import { useQuery } from '../../Queries';
import API from '../../API';
import Genre from '../../models/Genre';
import { translate } from '../../i18n/i18n';
type ArtistChipProps = {
name: string;
@@ -138,7 +139,7 @@ const SearchBarComponent = () => {
<View>
<Select
selectedValue={genre?.name}
placeholder="Genre"
placeholder={translate('genreFilter')}
accessibilityLabel="Genre"
onValueChange={(itemValue) => {
setGenre(
@@ -148,6 +149,7 @@ const SearchBarComponent = () => {
);
}}
>
<Select.Item label={translate('emptySelection')} value=''/>
{genresQuery.data?.map((data, index) => (
<Select.Item key={index} label={data.name} value={data.name} />
))}

File diff suppressed because it is too large Load Diff