Loading mobile/src/profile/hooks/useGetUserInterests.ts 0 → 100644 +12 −0 Original line number Diff line number Diff line import { useDataContext } from "../../common/contexts/data_context" import { IOption } from "../../common/domain/entities/option" import { useGet } from "../../hooks/useGet" export const useGetUserInterests = () => { const { profileRepository } = useDataContext() const callback = async () => { return profileRepository!.getUserInterests(); } const { data, requestStatus } = useGet<IOption[]>(callback); return { data, requestStatus }; } No newline at end of file Loading
mobile/src/profile/hooks/useGetUserInterests.ts 0 → 100644 +12 −0 Original line number Diff line number Diff line import { useDataContext } from "../../common/contexts/data_context" import { IOption } from "../../common/domain/entities/option" import { useGet } from "../../hooks/useGet" export const useGetUserInterests = () => { const { profileRepository } = useDataContext() const callback = async () => { return profileRepository!.getUserInterests(); } const { data, requestStatus } = useGet<IOption[]>(callback); return { data, requestStatus }; } No newline at end of file