Skip to content
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

Merged
merged 6 commits into from
Oct 25, 2023
Merged

chore: layout refactor #2532

merged 6 commits into from
Oct 25, 2023

Conversation

anmolsinghbhatia
Copy link
Collaborator

This PR includes the following changes:

  • refactoring of the profile layout.
  • elimination of redundant files and components.

@vercel
Copy link

vercel bot commented Oct 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

6 Ignored Deployments
Name Status Preview Comments Updated (UTC)
plane ⬜️ Ignored (Inspect) Visit Preview Oct 25, 2023 9:47am
plane-dev ⬜️ Ignored (Inspect) Visit Preview Oct 25, 2023 9:47am
plane-sh ⬜️ Ignored (Inspect) Visit Preview Oct 25, 2023 9:47am
plane-sh-dev ⬜️ Ignored (Inspect) Visit Preview Oct 25, 2023 9:47am
plane-sh-stage ⬜️ Ignored (Inspect) Visit Preview Oct 25, 2023 9:47am
plane-staging ⬜️ Ignored (Inspect) Visit Preview Oct 25, 2023 9:47am

className?: string;
};

export const ProfileAuthWrapper = (props: Props) => (
Copy link
Contributor

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.

Copy link
Contributor

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";
Copy link
Contributor

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";
Copy link
Contributor

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";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import from index file

@sriramveeraghanta sriramveeraghanta merged commit cea39c7 into develop Oct 25, 2023
8 of 9 checks passed
@sriramveeraghanta sriramveeraghanta deleted the chore/layout_refactor branch October 25, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants