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
|
|
@ -11,8 +11,6 @@ import workspaceService from "lib/services/workspace.service";
|
|||
import { WORKSPACE_INVITATION } from "constants/fetch-keys";
|
||||
// hooks
|
||||
import useUser from "lib/hooks/useUser";
|
||||
// hoc
|
||||
import withAuthWrapper from "lib/hoc/withAuthWrapper";
|
||||
// layouts
|
||||
import DefaultLayout from "layouts/DefaultLayout";
|
||||
// ui
|
||||
|
|
@ -149,4 +147,4 @@ const WorkspaceInvitation: NextPage = () => {
|
|||
);
|
||||
};
|
||||
|
||||
export default withAuthWrapper(WorkspaceInvitation);
|
||||
export default WorkspaceInvitation;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue