a little bit of this a little bit of that

This commit is contained in:
danis
2023-11-15 19:00:44 +01:00
parent 4c96f78a46
commit a814eec2cf
6 changed files with 29 additions and 3 deletions
+7 -1
View File
@@ -5,6 +5,8 @@ import ButtonBase from "../UI/ButtonBase";
import Artist from "../../models/Artist";
import Song from "../../models/Song";
import { AddSquare } from 'iconsax-react-native';
import { useQuery } from "../../Queries";
import API from "../../API";
const artistsDummy = [
{
@@ -44,8 +46,12 @@ const genreDummy = [
},
];
type SearchBarComponentProps = {
query: string;
};
const SearchBarComponent = () => {
const SearchBarComponent = (props: SearchBarComponentProps) => {
const [isTriggered, setIsTriggered] = React.useState(false);
const [genre, setGenre] = React.useState('')
const [query, setQuery] = React.useState('')
+1
View File
@@ -51,6 +51,7 @@ interface User extends Model {
interface UserData {
gamesPlayed: number;
xp: number;
totalScore: number;
avatar: string;
createdAt: Date;
}
+17
View File
@@ -0,0 +1,17 @@
import React from "react";
import { View } from "react-native";
import SearchBarComponent from "../../components/V2/SearchBar";
// search with all parameters from search bar function
// return to search bar auto completion thing
const SearchView = () => {
return (
<View style={{ display: 'flex', flexDirection: 'column', padding: 3 }} >
<SearchBarComponent query={"undefined"} />
</View>
)
}
export default SearchView;