-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: layout refactor #2532
chore: layout refactor #2532
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 6 Ignored Deployments
|
className?: string; | ||
}; | ||
|
||
export const ProfileAuthWrapper = (props: Props) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge this function with you below layout function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove app layout from here.
// layouts | ||
import { ProfileAuthWrapper } from "layouts/profile-layout"; | ||
import { AppLayout } from "layouts/app-layout"; | ||
import { ProfileAuthWrapper } from "layouts/profile-layout/layout"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import from index file.
@@ -7,8 +7,10 @@ import useSWR from "swr"; | |||
// services | |||
import { UserService } from "services/user.service"; | |||
// layouts | |||
import { ProfileAuthWrapper } from "layouts/profile-layout"; | |||
import { AppLayout } from "layouts/app-layout"; | |||
import { ProfileAuthWrapper } from "layouts/profile-layout/layout"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import from index file
@@ -7,6 +7,7 @@ import useSWR, { mutate } from "swr"; | |||
// services | |||
import { ProjectService } from "services/project"; | |||
// layouts | |||
import { AppLayout } from "layouts/app-layout"; | |||
import { ProjectSettingLayout } from "layouts/setting-layout/project-setting-layout"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import from index file
This PR includes the following changes: