fix: made withAuthWrapper working
fix: - made wrapper working - used it in protected routes & removed it from public routes
This commit is contained in:
parent
362e90800d
commit
a58abecc0e
5 changed files with 24 additions and 23 deletions
|
|
@ -9,6 +9,8 @@ import AdminLayout from "layouts/AdminLayout";
|
|||
import useSWR from "swr";
|
||||
// hooks
|
||||
import useUser from "lib/hooks/useUser";
|
||||
// hoc
|
||||
import withAuthWrapper from "lib/hoc/withAuthWrapper";
|
||||
// fetch keys
|
||||
import { USER_ISSUE } from "constants/fetch-keys";
|
||||
// services
|
||||
|
|
@ -167,4 +169,4 @@ const Workspace: NextPage = () => {
|
|||
);
|
||||
};
|
||||
|
||||
export default Workspace;
|
||||
export default withAuthWrapper(Workspace);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue