|
|
@ -21,11 +21,13 @@ export function AccueilScreen() {
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
|
|
|
|
|
|
const getJokes = async () => {
|
|
|
|
const getJokes = async () => {
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
dispatch(setRecentJokes(await getLatestJokes()));
|
|
|
|
dispatch(setRecentJokes(await getLatestJokes()));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
getJokes();
|
|
|
|
getJokes();
|
|
|
|
|
|
|
|
|
|
|
|
const getTopCategories = async () => {
|
|
|
|
const getTopCategories = async () => {
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
dispatch(setCategories(await getCategorie()));
|
|
|
|
dispatch(setCategories(await getCategorie()));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
getTopCategories();
|
|
|
|
getTopCategories();
|
|
|
|