style: profile settings, activity, preference page padding (#1335)

This commit is contained in:
Aaryan Khandelwal 2023-06-23 11:09:03 +05:30 committed by GitHub
parent f839150741
commit 9c85704be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View File

@ -4,6 +4,7 @@ import useSWR from "swr";
import userService from "services/user.service";
// layouts
import { WorkspaceAuthorizationLayout } from "layouts/auth-layout";
import SettingsNavbar from "layouts/settings-navbar";
// components
import { Feeds } from "components/core";
// ui
@ -11,7 +12,6 @@ import { Loader } from "components/ui";
import { BreadcrumbItem, Breadcrumbs } from "components/breadcrumbs";
// fetch-keys
import { USER_ACTIVITY } from "constants/fetch-keys";
import SettingsNavbar from "layouts/settings-navbar";
const ProfileActivity = () => {
const { data: userActivity } = useSWR(USER_ACTIVITY, () => userService.getUserActivity());
@ -24,8 +24,8 @@ const ProfileActivity = () => {
</Breadcrumbs>
}
>
<div className="px-24 py-8">
<div className="mb-12 space-y-6">
<div className="p-8">
<div className="mb-8 space-y-6">
<div>
<h3 className="text-3xl font-semibold">Profile Settings</h3>
<p className="mt-1 text-brand-secondary">

View File

@ -10,6 +10,7 @@ import useUserAuth from "hooks/use-user-auth";
import useToast from "hooks/use-toast";
// layouts
import { WorkspaceAuthorizationLayout } from "layouts/auth-layout";
import SettingsNavbar from "layouts/settings-navbar";
// components
import { ImageUploadModal } from "components/core";
// ui
@ -22,7 +23,6 @@ import type { NextPage } from "next";
import type { IUser } from "types";
// constants
import { USER_ROLES } from "constants/workspace";
import SettingsNavbar from "layouts/settings-navbar";
const defaultValues: Partial<IUser> = {
avatar: "",
@ -136,8 +136,8 @@ const Profile: NextPage = () => {
userImage
/>
{myProfile ? (
<div className="px-24 py-8">
<div className="mb-12 space-y-6">
<div className="p-8">
<div className="mb-8 space-y-6">
<div>
<h3 className="text-3xl font-semibold">Profile Settings</h3>
<p className="mt-1 text-brand-secondary">

View File

@ -25,7 +25,7 @@ const ProfilePreferences = () => {
if (myProfile?.theme.palette) setPreLoadedData(myProfile.theme);
if (!customThemeSelectorOptions) setCustomThemeSelectorOptions(true);
}
}, [myProfile, theme]);
}, [myProfile, theme, customThemeSelectorOptions]);
return (
<WorkspaceAuthorizationLayout
@ -36,8 +36,8 @@ const ProfilePreferences = () => {
}
>
{myProfile ? (
<div className="px-24 py-8">
<div className="mb-12 space-y-6">
<div className="p-8">
<div className="mb-8 space-y-6">
<div>
<h3 className="text-3xl font-semibold">Profile Settings</h3>
<p className="mt-1 text-brand-secondary">