adding community to route guard

This commit is contained in:
Cristhian Zanforlin Lousa 2023-08-11 20:23:10 -03:00
commit 63df642aa5
2 changed files with 8 additions and 2 deletions

View file

@ -12,7 +12,6 @@ const api: AxiosInstance = axios.create({
});
function ApiInterceptor() {
const retryCounts = useRef([]);
const { setErrorData } = useContext(alertContext);
const { accessToken, refreshAccessToken, login, logout } = useContext(AuthContext);
const navigate = useNavigate();

View file

@ -20,7 +20,14 @@ const Router = () => {
</ProtectedRoute>
}
/>
<Route path="/community" element={<CommunityPage />} />
<Route
path="/community"
element={
<ProtectedRoute>
<CommunityPage />
</ProtectedRoute>
}
/>
<Route path="/flow/:id/">
<Route
path=""