mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
style: profile settings, activity, preference page padding (#1335)
This commit is contained in:
parent
f839150741
commit
9c85704be3
@ -4,6 +4,7 @@ import useSWR from "swr";
|
|||||||
import userService from "services/user.service";
|
import userService from "services/user.service";
|
||||||
// layouts
|
// layouts
|
||||||
import { WorkspaceAuthorizationLayout } from "layouts/auth-layout";
|
import { WorkspaceAuthorizationLayout } from "layouts/auth-layout";
|
||||||
|
import SettingsNavbar from "layouts/settings-navbar";
|
||||||
// components
|
// components
|
||||||
import { Feeds } from "components/core";
|
import { Feeds } from "components/core";
|
||||||
// ui
|
// ui
|
||||||
@ -11,7 +12,6 @@ import { Loader } from "components/ui";
|
|||||||
import { BreadcrumbItem, Breadcrumbs } from "components/breadcrumbs";
|
import { BreadcrumbItem, Breadcrumbs } from "components/breadcrumbs";
|
||||||
// fetch-keys
|
// fetch-keys
|
||||||
import { USER_ACTIVITY } from "constants/fetch-keys";
|
import { USER_ACTIVITY } from "constants/fetch-keys";
|
||||||
import SettingsNavbar from "layouts/settings-navbar";
|
|
||||||
|
|
||||||
const ProfileActivity = () => {
|
const ProfileActivity = () => {
|
||||||
const { data: userActivity } = useSWR(USER_ACTIVITY, () => userService.getUserActivity());
|
const { data: userActivity } = useSWR(USER_ACTIVITY, () => userService.getUserActivity());
|
||||||
@ -24,8 +24,8 @@ const ProfileActivity = () => {
|
|||||||
</Breadcrumbs>
|
</Breadcrumbs>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div className="px-24 py-8">
|
<div className="p-8">
|
||||||
<div className="mb-12 space-y-6">
|
<div className="mb-8 space-y-6">
|
||||||
<div>
|
<div>
|
||||||
<h3 className="text-3xl font-semibold">Profile Settings</h3>
|
<h3 className="text-3xl font-semibold">Profile Settings</h3>
|
||||||
<p className="mt-1 text-brand-secondary">
|
<p className="mt-1 text-brand-secondary">
|
||||||
|
@ -10,6 +10,7 @@ import useUserAuth from "hooks/use-user-auth";
|
|||||||
import useToast from "hooks/use-toast";
|
import useToast from "hooks/use-toast";
|
||||||
// layouts
|
// layouts
|
||||||
import { WorkspaceAuthorizationLayout } from "layouts/auth-layout";
|
import { WorkspaceAuthorizationLayout } from "layouts/auth-layout";
|
||||||
|
import SettingsNavbar from "layouts/settings-navbar";
|
||||||
// components
|
// components
|
||||||
import { ImageUploadModal } from "components/core";
|
import { ImageUploadModal } from "components/core";
|
||||||
// ui
|
// ui
|
||||||
@ -22,7 +23,6 @@ import type { NextPage } from "next";
|
|||||||
import type { IUser } from "types";
|
import type { IUser } from "types";
|
||||||
// constants
|
// constants
|
||||||
import { USER_ROLES } from "constants/workspace";
|
import { USER_ROLES } from "constants/workspace";
|
||||||
import SettingsNavbar from "layouts/settings-navbar";
|
|
||||||
|
|
||||||
const defaultValues: Partial<IUser> = {
|
const defaultValues: Partial<IUser> = {
|
||||||
avatar: "",
|
avatar: "",
|
||||||
@ -136,8 +136,8 @@ const Profile: NextPage = () => {
|
|||||||
userImage
|
userImage
|
||||||
/>
|
/>
|
||||||
{myProfile ? (
|
{myProfile ? (
|
||||||
<div className="px-24 py-8">
|
<div className="p-8">
|
||||||
<div className="mb-12 space-y-6">
|
<div className="mb-8 space-y-6">
|
||||||
<div>
|
<div>
|
||||||
<h3 className="text-3xl font-semibold">Profile Settings</h3>
|
<h3 className="text-3xl font-semibold">Profile Settings</h3>
|
||||||
<p className="mt-1 text-brand-secondary">
|
<p className="mt-1 text-brand-secondary">
|
||||||
|
@ -25,7 +25,7 @@ const ProfilePreferences = () => {
|
|||||||
if (myProfile?.theme.palette) setPreLoadedData(myProfile.theme);
|
if (myProfile?.theme.palette) setPreLoadedData(myProfile.theme);
|
||||||
if (!customThemeSelectorOptions) setCustomThemeSelectorOptions(true);
|
if (!customThemeSelectorOptions) setCustomThemeSelectorOptions(true);
|
||||||
}
|
}
|
||||||
}, [myProfile, theme]);
|
}, [myProfile, theme, customThemeSelectorOptions]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<WorkspaceAuthorizationLayout
|
<WorkspaceAuthorizationLayout
|
||||||
@ -36,8 +36,8 @@ const ProfilePreferences = () => {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
{myProfile ? (
|
{myProfile ? (
|
||||||
<div className="px-24 py-8">
|
<div className="p-8">
|
||||||
<div className="mb-12 space-y-6">
|
<div className="mb-8 space-y-6">
|
||||||
<div>
|
<div>
|
||||||
<h3 className="text-3xl font-semibold">Profile Settings</h3>
|
<h3 className="text-3xl font-semibold">Profile Settings</h3>
|
||||||
<p className="mt-1 text-brand-secondary">
|
<p className="mt-1 text-brand-secondary">
|
||||||
|
Loading…
Reference in New Issue
Block a user