From 719a0a7a0762d1b8a030c5c1bdb18cd272b7e099 Mon Sep 17 00:00:00 2001 From: hugoamalric Date: Thu, 12 Jan 2023 15:16:34 +0100 Subject: [PATCH] fix(#92): profile page UI padding too large --- .../src/modules/core/components/Header/Header.component.tsx | 4 ++++ .../pages/ProfileAttachments/ProfileAttachments.page.tsx | 3 ++- .../ProfileCertifications/ProfileCertifications.page.tsx | 3 ++- .../pages/ProfileCollections/ProfileCollections.page.tsx | 3 ++- .../users/pages/ProfileCourses/ProfileCourses.page.tsx | 5 ++++- .../users/pages/ProfileQuizzes/ProfileQuizzes.page.tsx | 3 ++- .../modules/users/pages/ProfileVideos/ProfileVideos.page.tsx | 5 ++++- 7 files changed, 20 insertions(+), 6 deletions(-) diff --git a/apps/polyflix/src/modules/core/components/Header/Header.component.tsx b/apps/polyflix/src/modules/core/components/Header/Header.component.tsx index 412895ca..a9570235 100644 --- a/apps/polyflix/src/modules/core/components/Header/Header.component.tsx +++ b/apps/polyflix/src/modules/core/components/Header/Header.component.tsx @@ -1,10 +1,12 @@ import { Stack, Typography } from '@mui/material' +import { SxProps, Theme } from '@mui/system' interface Props { title?: string description?: string actionButton?: React.ReactNode hideActionButton?: boolean + sx?: SxProps } // A simple component to display a page header @@ -13,12 +15,14 @@ export const Header = ({ title, actionButton, hideActionButton = false, + sx, }: Props) => { return ( { return ( { sx={{ alignItems: 'center' }} >
diff --git a/apps/polyflix/src/modules/users/pages/ProfileCertifications/ProfileCertifications.page.tsx b/apps/polyflix/src/modules/users/pages/ProfileCertifications/ProfileCertifications.page.tsx index a4cad28c..8d3b0521 100644 --- a/apps/polyflix/src/modules/users/pages/ProfileCertifications/ProfileCertifications.page.tsx +++ b/apps/polyflix/src/modules/users/pages/ProfileCertifications/ProfileCertifications.page.tsx @@ -41,11 +41,12 @@ export const ProfileCertificationsPage = () => { return (
diff --git a/apps/polyflix/src/modules/users/pages/ProfileCollections/ProfileCollections.page.tsx b/apps/polyflix/src/modules/users/pages/ProfileCollections/ProfileCollections.page.tsx index 2f1a09f1..5092d43a 100644 --- a/apps/polyflix/src/modules/users/pages/ProfileCollections/ProfileCollections.page.tsx +++ b/apps/polyflix/src/modules/users/pages/ProfileCollections/ProfileCollections.page.tsx @@ -56,9 +56,10 @@ export const ProfileCollectionsPage: React.FC = ({ user }: Props) => { 'profile.tabs.collections.contentOther.title' )} ${getUsernameToDisplay(user!)}` } - sx={{ mt: 3 }} + sx={{ mt: 3, pt: 0 }} >
= ({ user }: Props) => { 'profile.tabs.courses.contentOther.title' )} ${getUsernameToDisplay(user!)}` } - sx={{ mt: 3 }} + sx={{ mt: 3, pt: 0 }} >
= ({ user }: Props) => { return ( = ({ user }: Props) => { >
= ({ user }: Props) => { return ( = ({ user }: Props) => { >