adding community to route guard
This commit is contained in:
parent
ed7723a8e4
commit
63df642aa5
2 changed files with 8 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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=""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue