summaryrefslogtreecommitdiff
path: root/src/screens/Information
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens/Information')
-rw-r--r--src/screens/Information/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screens/Information/index.js b/src/screens/Information/index.js
index b1f7965..1042060 100644
--- a/src/screens/Information/index.js
+++ b/src/screens/Information/index.js
@@ -9,16 +9,16 @@ import { sectors } from './data';
function Information() {
useDocumentTitle('Informações');
const layoutType = useLayoutType();
- const { fetchFAQ } = useUser();
+ const { userService } = useUser();
const [faq, setFaq] = useState(null);
useEffect(() => {
async function getClassrooms() {
- const result = await fetchFAQ();
+ const result = await userService.fetchFAQ();
setFaq(result.data);
}
getClassrooms();
- }, [fetchFAQ]);
+ }, [userService, userService.fetchFAQ]);
return <View faq={faq} sectors={sectors} layoutType={layoutType} />;
}