diff --git a/app/[locale]/account/page.tsx b/app/[locale]/account/page.tsx index 4c0003d..a541a77 100644 --- a/app/[locale]/account/page.tsx +++ b/app/[locale]/account/page.tsx @@ -1,32 +1,29 @@ -import { FC, Suspense } from 'react'; +import { FC } from 'react'; import { Main } from '@/app/ui/Main'; -import { UserSettingsForm as UserSettingsForm, UserSettingsFormSkeleton } from '@/app/ui/UserSettingsForm'; -import { getUserSettings } from '@/app/lib/actions/userSettingsActions'; +import Link from 'next/link'; +import SettingsIcon from "@mui/icons-material/Settings"; +import LogoutIcon from "@mui/icons-material/Logout"; +import AccountCircle from "@mui/icons-material/AccountCircle"; +import { useTranslations } from 'next-intl'; -const AccountPage: FC = async () => { - const userSettings = await getUserSettings(); + +const Page: FC = () => { + const t = useTranslations('account-page'); return (
- +
+
+

{t('title')}

+ {t('settings-button')} + {t('logout-button')} +
+
+
- ); -}; -const Page: FC = () => { - return ( - -
-
- -
- - }> - -
); }; diff --git a/messages/en.json b/messages/en.json index e61aaa7..50c0a1c 100644 --- a/messages/en.json +++ b/messages/en.json @@ -2,6 +2,11 @@ "Index": { "title": "Welcome!" }, + "account-page": { + "title": "User account", + "settings-button": "User Settings", + "logout-button": "Logout" + }, "PageFooter": { "app-description": "Helping you to stay on top of your utility bills", "links": { diff --git a/messages/hr.json b/messages/hr.json index d437e10..cd3a06c 100644 --- a/messages/hr.json +++ b/messages/hr.json @@ -2,6 +2,11 @@ "Index": { "title": "Dobrodošli" }, + "account-page": { + "title": "Korisnički račun", + "settings-button": "Korisničke postavke", + "logout-button": "Odjava" + }, "PageFooter": { "app-description": "Preuzmite kontrolu nad svojim režijama!", "links": {