diff --git a/src/features/profile/components/setting/Setting.tsx b/src/features/profile/components/setting/Setting.tsx
index bf75e2c..95bcbfe 100644
--- a/src/features/profile/components/setting/Setting.tsx
+++ b/src/features/profile/components/setting/Setting.tsx
@@ -59,115 +59,149 @@ export function Setting() {
return (
-
-
-
-
-
- {isEditing && (
+
+
+
+
+
+
+ {isEditing && (
+
+ )}
- )}
-
-
- }
- >
-
+ }
>
-
- {isEditing ? (
-
-
- {t('settings.theme')}
-
-
-
- ) : (
-
-
- {t('settings.theme')}
-
-
- {mode === 'light'
- ? t('settings.light')
- : t('settings.dark')}
-
-
- )}
+
+
+ {isEditing ? (
+
+
+ {t('settings.theme')}
+
+
+
+ ) : (
+
+
+ {t('settings.theme')}
+
+
+ {mode === 'light'
+ ? t('settings.light')
+ : t('settings.dark')}
+
+
+ )}
+
+
+ {isEditing ? (
+ o.label}
+ value={
+ languageOptions.find((o) => o.code === draftLanguage) ||
+ null
+ }
+ onChange={handleDraftLanguageChange}
+ renderInput={(p) => (
+
+ )}
+ size="medium"
+ fullWidth
+ />
+ ) : (
+
+
+ {t('settings.language')}
+
+
+ {
+ languageOptions.find((o) => o.code === savedLanguage)
+ ?.label
+ }
+
+
+ )}
+
-
+
{isEditing ? (
o.label}
- value={
- languageOptions.find((o) => o.code === draftLanguage) ||
- null
- }
- onChange={handleDraftLanguageChange}
+ options={calendarOptions}
+ value={selectedCalendar}
+ onChange={(_, v) => v && setSelectedCalendar(v)}
renderInput={(p) => (
-
+
)}
size="medium"
fullWidth
@@ -175,41 +209,15 @@ export function Setting() {
) : (
- {t('settings.language')}
-
-
- {
- languageOptions.find((o) => o.code === savedLanguage)
- ?.label
- }
+ {t('settings.calendar')}
+ {selectedCalendar}
)}
-
- {isEditing ? (
- v && setSelectedCalendar(v)}
- renderInput={(p) => (
-
- )}
- size="medium"
- fullWidth
- />
- ) : (
-
-
- {t('settings.calendar')}
-
- {selectedCalendar}
-
- )}
-
-
-
+
+
);
diff --git a/src/features/profile/components/userInformation/UserForm.tsx b/src/features/profile/components/userInformation/UserForm.tsx
deleted file mode 100644
index bcfd593..0000000
--- a/src/features/profile/components/userInformation/UserForm.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import { Box } from '@mui/material';
-import { PersonalInformation } from './PersonalInformation';
-import { PhoneNumber } from './PhoneNumber';
-import { SocialMedia } from './SocialMedia';
-
-export function UserForm() {
- return (
-
-
-
-
-
- );
-}
diff --git a/src/features/profile/routes/SettingPage.tsx b/src/features/profile/routes/SettingPage.tsx
index 30377f6..4404f92 100644
--- a/src/features/profile/routes/SettingPage.tsx
+++ b/src/features/profile/routes/SettingPage.tsx
@@ -1,4 +1,4 @@
-import React, { useState } from 'react';
+import { useState } from 'react';
import {
createBrowserRouter,
RouterProvider,
@@ -71,7 +71,7 @@ export function Layout() {
const [drawerOpen, setDrawerOpen] = useState(false);
const contentMaxWidth = '100%';
- const contentWidthMd = '810px';
+ // const contentWidthMd = '810px';
const navWidthMd = '274px';
const navConfig: NavItemConfig[] = [
@@ -183,68 +183,78 @@ export function Layout() {
return (
- {!isMdUp && (
-
-
- setDrawerOpen(true)}
- >
-
-
-
-
- )}
-
- {isMdUp && (
-
- }
- activePath={location.pathname + location.hash}
- sideNavVariant="full"
- positioning="absolute"
- />
-
+
+ {!isMdUp && (
+
+
+ setDrawerOpen(true)}>
+
+
+
+
)}
-
-
-
-
- {!isMdUp && (
- setDrawerOpen(false)}
- >
-
- }
- activePath={location.pathname + location.hash}
- sideNavVariant="full"
- />
+
+
+ {isMdUp && (
+
+ }
+ activePath={location.pathname + location.hash}
+ sideNavVariant="full"
+ positioning="absolute"
+ />
+
+ )}
+
+
+
-
- )}
+
+
+ {!isMdUp && (
+ setDrawerOpen(false)}
+ >
+
+ }
+ activePath={location.pathname + location.hash}
+ sideNavVariant="full"
+ />
+
+
+ )}
+
);
}