diff --git a/src/App.tsx b/src/App.tsx index 5823413..9fce02b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -50,6 +50,11 @@ const App: FunctionComponent = () => { navigator.geolocation.getCurrentPosition(success, () => {}, locationOptions); } + axiosInstance.get('/sharing/category') + .then(({ data }) => { + setCategory(data) + }) + return () => { setCategory([]) setLocation({})