fix: made withAuthWrapper working

fix: - made wrapper working - used it in protected routes & removed it from public routes
This commit is contained in:
Dakshesh Jain 2022-11-25 16:30:41 +05:30
parent 362e90800d
commit a58abecc0e
5 changed files with 24 additions and 23 deletions

View file

@ -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);