diff --git a/src/app/[name]/(Profile)/profile/settings/page.tsx b/src/app/[name]/(Profile)/profile/settings/page.tsx index c0ea532..c9fa157 100644 --- a/src/app/[name]/(Profile)/profile/settings/page.tsx +++ b/src/app/[name]/(Profile)/profile/settings/page.tsx @@ -7,12 +7,23 @@ import { TabHeader } from '@/components/tab/TabHeader' import { Switch } from '@/components/ui/switch'; import Accordion from '@/components/utils/Accordion'; import Seperator from '@/components/utils/Seperator'; -import { Key, KeySquare, Notification1, ArrowLeft, MedalStar, TickCircle } from 'iconsax-react' +import { SmartIcon } from '@/components/utils/SmartIcon'; +import { getI18nObject } from '@/lib/i18n'; +import { SettingsData } from '@/types/i18n/settings'; +import { Key, KeySquare, Notification1, ArrowLeft, TickCircle } from 'iconsax-react' import { useRouter } from 'next/navigation'; -import React from 'react' +import React, { Fragment } from 'react' +import { useTranslation } from 'react-i18next'; function UserSettingsIndex() { const router = useRouter(); + const { t } = useTranslation('settings'); + const data: SettingsData = getI18nObject(t, "data"); + + const onSwitched = (e: React.MouseEvent) => { + const target = e.target as HTMLElement; + console.log('Save changed setting?', target.id); + } const notifsTab = () => { @@ -22,106 +33,46 @@ function UserSettingsIndex() { className="bg-container rounded-container shadow-container p-4">