diff --git a/src/app/(main)/profile/ProfileSettings.tsx b/src/app/(main)/profile/ProfileSettings.tsx index 4b6816bd..59f30fbe 100644 --- a/src/app/(main)/profile/ProfileSettings.tsx +++ b/src/app/(main)/profile/ProfileSettings.tsx @@ -19,7 +19,7 @@ export function ProfileSettings() { const { username, role } = user; - const renderRole = value => { + const renderRole = (value: string) => { if (value === ROLES.user) { return formatMessage(labels.user); } diff --git a/src/app/(main)/profile/page.module.css b/src/app/(main)/profile/page.module.css new file mode 100644 index 00000000..77ab4919 --- /dev/null +++ b/src/app/(main)/profile/page.module.css @@ -0,0 +1,9 @@ +.container { + margin: 0 auto; +} + +@media screen and (max-width: 768px) { + .container { + margin: 0; + } +} diff --git a/src/app/(main)/profile/page.tsx b/src/app/(main)/profile/page.tsx index 9dbd91f6..d774e528 100644 --- a/src/app/(main)/profile/page.tsx +++ b/src/app/(main)/profile/page.tsx @@ -1,13 +1,14 @@ import ProfileHeader from './ProfileHeader'; import ProfileSettings from './ProfileSettings'; import { Metadata } from 'next'; +import styles from './page.module.css'; export default function () { return ( - <> +