Skip to content

Commit

Permalink
add types to my bar
Browse files Browse the repository at this point in the history
  • Loading branch information
milad-alizadeh committed Dec 26, 2023
1 parent 451bad9 commit 6842892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useFetchMybar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const useFetchMyBar = () => {
error: myBarError,
} = useQuery(GET_MY_BAR)

const [sectionsData, setSectionsData] = useState([])
const [sectionsHeader, setSectionsHeader] = useState([])
const [sectionsData, setSectionsData] = useState<SectionDataType[]>([])
const [sectionsHeader, setSectionsHeader] = useState<SectionHeaderType[]>([])
const [ingredientsInMyBar, setIngredientsInMyBar] = useState<Ingredient[]>([])

useEffect(() => {
Expand Down

0 comments on commit 6842892

Please sign in to comment.