📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
move to vertical tabs layout
Blue Mousef421db3f1d87
diff --git a/web/app/pages/UserSettings/UserSettings.tsx b/web/app/pages/UserSettings/UserSettings.tsxindex 83757de47..14b6e27c6 100644--- a/web/app/pages/UserSettings/UserSettings.tsx+++ b/web/app/pages/UserSettings/UserSettings.tsx@@ -469,13 +469,17 @@ const UserSettings = () => {<div className='flex min-h-min-footer flex-col bg-gray-50 dark:bg-slate-900'><form className='mx-auto w-full max-w-7xl px-4 py-6 sm:px-6 lg:px-8' onSubmit={handleSubmit}><h2 className='mt-2 text-3xl font-bold text-gray-900 dark:text-gray-50'>{t('titles.profileSettings')}</h2>- {/* Tabs selector */}- <div className='mt-2'>- <div className='sm:hidden'>+ <hr className='mt-5 border-gray-200 dark:border-gray-600' />+ <div className='mt-6 flex flex-col gap-6 md:flex-row'>+ <div className='md:hidden'><Selectitems={tabs}keyExtractor={(item) => item.id}labelExtractor={(item) => item.label}+ iconExtractor={(item) => {+ const Icon = item.icon+ return <Icon className='h-4 w-4' strokeWidth={1.5} />+ }}onSelect={(item) => {setActiveTab(item.id)}}@@ -483,397 +487,393 @@ const UserSettings = () => {capitalise/></div>- <div className='hidden sm:block'>- <div>- <nav className='-mb-px flex space-x-4' aria-label='Tabs'>- {_map(tabs, (tab) => {- const isCurrent = tab.id === activeTab-- const onClick = () => {- setActiveTab(tab.id)- }- return (- <div- key={tab.id}- onClick={onClick}- className={cx(- 'text-md group inline-flex cursor-pointer items-center border-b-2 px-1 py-2 font-bold whitespace-nowrap transition-all duration-200',- {- 'border-slate-900 text-slate-900 dark:border-gray-50 dark:text-gray-50': isCurrent,- 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-400 dark:hover:border-gray-300 dark:hover:text-gray-300':- !isCurrent,- },- )}- aria-current={isCurrent ? 'page' : undefined}- >- <tab.icon- className={cx(- isCurrent- ? 'text-slate-900 dark:text-gray-50'- : 'text-gray-500 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-300',- 'mr-2 -ml-0.5 h-5 w-5',- )}- aria-hidden='true'- strokeWidth={1.5}- />- <span>{tab.label}</span>- </div>- )- })}- </nav>- </div>- </div>- </div>- <ClientOnly fallback={<Loader />}>- {() => {- if (isLoading) {- return <Loader />- }-- if (activeTab === TAB_MAPPING.ACCOUNT) {- return (- <>- <Input- name='email'- type='email'- label={t('auth.common.email')}- value={form.email}- placeholder='[email protected]'- className='mt-4'- onChange={handleInput}- error={beenSubmitted ? errors.email : null}- />- <span- onClick={toggleShowPasswordFields}- className='mt-2 flex max-w-max cursor-pointer items-center text-sm text-gray-900 hover:underline dark:text-gray-50'+ <aside className='hidden w-56 shrink-0 md:block'>+ <nav className='flex flex-col space-y-1' aria-label='Sidebar'>+ {_map(tabs, (tab) => {+ const isCurrent = tab.id === activeTab+ const Icon = tab.icon++ return (+ <button+ key={tab.id}+ type='button'+ onClick={() => setActiveTab(tab.id)}+ className={cx(+ 'group flex items-center rounded-md px-3 py-2 text-left text-sm text-gray-900 transition-colors',+ {+ 'bg-gray-200 font-semibold dark:bg-slate-800 dark:text-gray-50': isCurrent,+ 'hover:bg-gray-200 dark:text-gray-200 dark:hover:bg-slate-800 dark:hover:text-gray-50':+ !isCurrent,+ },+ )}+ aria-current={isCurrent ? 'page' : undefined}>- {t('auth.common.changePassword')}- <ChevronDownIcon- className={cx('ml-2 size-3', {- 'rotate-180': showPasswordFields,+ <Icon+ className={cx('mr-2 h-5 w-5 shrink-0 transition-colors', {+ 'text-gray-900 dark:text-gray-50': isCurrent,+ 'text-gray-500 group-hover:text-gray-600 dark:text-gray-400 dark:group-hover:text-gray-300':+ !isCurrent,})}+ strokeWidth={1.5}/>- </span>- {showPasswordFields ? (- <div className='mt-4 grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-6'>- <Input- name='password'- type='password'- label={t('auth.common.password')}- hint={t('auth.common.hint', { amount: MIN_PASSWORD_CHARS })}- value={form.password}- placeholder={t('auth.common.password')}- className='sm:col-span-3'- onChange={handleInput}- error={beenSubmitted ? errors.password : null}- />+ <span>{tab.label}</span>+ </button>+ )+ })}+ </nav>+ </aside>++ <section className='flex-1'>+ <ClientOnly fallback={<Loader />}>+ {() => {+ if (isLoading) {+ return <Loader />+ }++ if (activeTab === TAB_MAPPING.ACCOUNT) {+ return (+ <><Input- name='repeat'- type='password'- label={t('auth.common.repeat')}- value={form.repeat}- placeholder={t('auth.common.repeat')}- className='sm:col-span-3'+ name='email'+ type='email'+ label={t('auth.common.email')}+ value={form.email}+ placeholder='[email protected]'onChange={handleInput}- error={beenSubmitted ? errors.repeat : null}+ error={beenSubmitted ? errors.email : null}/>- </div>- ) : null}- <Button className='mt-4' type='submit' primary large>- {t('profileSettings.update')}- </Button>-- <hr className='mt-5 border-gray-200 dark:border-gray-600' />-- <h3 className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'>- {t('profileSettings.apiKey')}- </h3>- {user?.apiKey ? (- <>- <p className='max-w-prose text-base text-gray-900 dark:text-gray-50'>- {t('profileSettings.apiKeyWarning')}- </p>- <div className='grid grid-cols-1 gap-x-4 gap-y-6 lg:grid-cols-2'>- <Input- label={t('profileSettings.apiKey')}- name='apiKey'- className='mt-4'- value={user.apiKey}- disabled+ <span+ onClick={toggleShowPasswordFields}+ className='mt-2 flex max-w-max cursor-pointer items-center text-sm text-gray-900 hover:underline dark:text-gray-50'+ >+ {t('auth.common.changePassword')}+ <ChevronDownIcon+ className={cx('ml-2 size-3', {+ 'rotate-180': showPasswordFields,+ })}/>- </div>- </>- ) : (- <p className='max-w-prose text-base text-gray-900 dark:text-gray-50'>- {t('profileSettings.noApiKey')}- </p>- )}- {user?.apiKey ? (- <Button className='mt-4' onClick={() => setShowAPIDeleteModal(true)} danger large>- {t('profileSettings.deleteApiKeyBtn')}- </Button>- ) : (- <Button className='mt-4' onClick={onApiKeyGenerate} primary large>- {t('profileSettings.addApiKeyBtn')}- </Button>- )}-- {isSelfhosted ? (- <>- {/* Shared projects setting */}- <SharedProjects />- </>- ) : (- <>- {/* 2FA setting */}- <hr className='mt-5 border-gray-200 dark:border-gray-600' />- <h3 className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'>- {t('profileSettings.2fa')}- </h3>- <TwoFA />+ </span>+ {showPasswordFields ? (+ <div className='mt-4 grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-6'>+ <Input+ name='password'+ type='password'+ label={t('auth.common.password')}+ hint={t('auth.common.hint', { amount: MIN_PASSWORD_CHARS })}+ value={form.password}+ placeholder={t('auth.common.password')}+ className='sm:col-span-3'+ onChange={handleInput}+ error={beenSubmitted ? errors.password : null}+ />+ <Input+ name='repeat'+ type='password'+ label={t('auth.common.repeat')}+ value={form.repeat}+ placeholder={t('auth.common.repeat')}+ className='sm:col-span-3'+ onChange={handleInput}+ error={beenSubmitted ? errors.repeat : null}+ />+ </div>+ ) : null}+ <Button className='mt-4' type='submit' primary large>+ {t('profileSettings.update')}+ </Button>- {/* Socialisations setup */}<hr className='mt-5 border-gray-200 dark:border-gray-600' />- <h3- id='socialisations'- className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'- >- {t('profileSettings.socialisations')}- </h3>- <Socialisations />-- {/* Shared projects setting */}- <SharedProjects />- {/* Organisations setting */}- <hr className='mt-5 border-gray-200 dark:border-gray-600' /><h3 className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'>- {t('profileSettings.organisations')}+ {t('profileSettings.apiKey')}</h3>- <div>- {!_isEmpty(user?.organisationMemberships) ? (- <div className='mt-3 flex flex-col'>- <div className='-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8'>- <div className='inline-block min-w-full py-2 align-middle md:px-6 lg:px-8'>- <div className='overflow-hidden ring-1 ring-black/10 md:rounded-lg'>- <table className='min-w-full divide-y divide-gray-300 dark:divide-gray-600'>- <thead>- <tr className='dark:bg-slate-800'>- <th- scope='col'- className='py-3.5 pr-3 pl-4 text-left text-sm font-semibold text-gray-900 sm:pl-6 dark:text-white'- >- {t('profileSettings.organisationsTable.organisation')}- </th>- <th- scope='col'- className='px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-white'- >- {t('profileSettings.organisationsTable.role')}- </th>- <th- scope='col'- className='px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-white'- >- {t('profileSettings.organisationsTable.joinedOn')}- </th>- <th scope='col' className='relative py-3.5 pr-4 pl-3 sm:pr-6' />- </tr>- </thead>- <tbody className='divide-y divide-gray-300 dark:divide-gray-600'>- {_map(user?.organisationMemberships, (membership) => (- <Organisations key={membership.id} membership={membership} />- ))}- </tbody>- </table>+ {user?.apiKey ? (+ <>+ <p className='max-w-prose text-base text-gray-900 dark:text-gray-50'>+ {t('profileSettings.apiKeyWarning')}+ </p>+ <div className='grid grid-cols-1 gap-x-4 gap-y-6 lg:grid-cols-2'>+ <Input+ label={t('profileSettings.apiKey')}+ name='apiKey'+ className='mt-4'+ value={user.apiKey}+ disabled+ />+ </div>+ </>+ ) : (+ <p className='max-w-prose text-base text-gray-900 dark:text-gray-50'>+ {t('profileSettings.noApiKey')}+ </p>+ )}+ {user?.apiKey ? (+ <Button className='mt-4' onClick={() => setShowAPIDeleteModal(true)} danger large>+ {t('profileSettings.deleteApiKeyBtn')}+ </Button>+ ) : (+ <Button className='mt-4' onClick={onApiKeyGenerate} primary large>+ {t('profileSettings.addApiKeyBtn')}+ </Button>+ )}++ {isSelfhosted ? (+ <>+ {/* Shared projects setting */}+ <SharedProjects />+ </>+ ) : (+ <>+ {/* 2FA setting */}+ <hr className='mt-5 border-gray-200 dark:border-gray-600' />+ <h3 className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'>+ {t('profileSettings.2fa')}+ </h3>+ <TwoFA />++ {/* Socialisations setup */}+ <hr className='mt-5 border-gray-200 dark:border-gray-600' />+ <h3+ id='socialisations'+ className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'+ >+ {t('profileSettings.socialisations')}+ </h3>+ <Socialisations />++ {/* Shared projects setting */}+ <SharedProjects />++ {/* Organisations setting */}+ <hr className='mt-5 border-gray-200 dark:border-gray-600' />+ <h3 className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'>+ {t('profileSettings.organisations')}+ </h3>+ <div>+ {!_isEmpty(user?.organisationMemberships) ? (+ <div className='mt-3 flex flex-col'>+ <div className='-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8'>+ <div className='inline-block min-w-full py-2 align-middle md:px-6 lg:px-8'>+ <div className='overflow-hidden ring-1 ring-black/10 md:rounded-lg'>+ <table className='min-w-full divide-y divide-gray-300 dark:divide-gray-600'>+ <thead>+ <tr className='dark:bg-slate-800'>+ <th+ scope='col'+ className='py-3.5 pr-3 pl-4 text-left text-sm font-semibold text-gray-900 sm:pl-6 dark:text-white'+ >+ {t('profileSettings.organisationsTable.organisation')}+ </th>+ <th+ scope='col'+ className='px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-white'+ >+ {t('profileSettings.organisationsTable.role')}+ </th>+ <th+ scope='col'+ className='px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-white'+ >+ {t('profileSettings.organisationsTable.joinedOn')}+ </th>+ <th scope='col' className='relative py-3.5 pr-4 pl-3 sm:pr-6' />+ </tr>+ </thead>+ <tbody className='divide-y divide-gray-300 dark:divide-gray-600'>+ {_map(user?.organisationMemberships, (membership) => (+ <Organisations key={membership.id} membership={membership} />+ ))}+ </tbody>+ </table>+ </div>+ </div></div></div>- </div>+ ) : (+ <NoOrganisations />+ )}</div>- ) : (- <NoOrganisations />- )}- </div>- <hr className='mt-5 border-gray-200 dark:border-gray-600' />- {!user?.isActive ? (- <div- className='mt-4 flex max-w-max cursor-pointer pl-0 text-blue-600 underline hover:text-indigo-800 dark:hover:text-indigo-600'- onClick={() => onEmailConfirm(setError)}- >- <EnvelopeIcon className='mt-0.5 mr-2 h-6 w-6 text-blue-500' />- {t('profileSettings.noLink')}- </div>- ) : null}- <div className='mt-4 flex flex-wrap justify-center gap-2 sm:justify-between'>- <Button onClick={() => setShowExportModal(true)} semiSmall primary>- <>- <DownloadIcon className='mr-1 h-5 w-5' strokeWidth={1.5} />- {t('profileSettings.requestExport')}- </>- </Button>- <div className='flex flex-wrap justify-center gap-2'>- <Button- onClick={() => {- logout(true)- }}- semiSmall- semiDanger- >- <>- {/* We need this div for the button to match the height of the button after it */}- <div className='h-5' />- {t('profileSettings.logoutAll')}- </>- </Button>- <Button onClick={() => setShowModal(true)} semiSmall semiDanger>- <>- <ExclamationTriangleIcon className='mr-1 h-5 w-5' />- {t('profileSettings.delete')}- </>- </Button>- </div>- </div>+ <hr className='mt-5 border-gray-200 dark:border-gray-600' />+ {!user?.isActive ? (+ <div+ className='mt-4 flex max-w-max cursor-pointer pl-0 text-blue-600 underline hover:text-indigo-800 dark:hover:text-indigo-600'+ onClick={() => onEmailConfirm(setError)}+ >+ <EnvelopeIcon className='mt-0.5 mr-2 h-6 w-6 text-blue-500' />+ {t('profileSettings.noLink')}+ </div>+ ) : null}+ <div className='mt-4 flex flex-wrap justify-center gap-2 sm:justify-between'>+ <Button onClick={() => setShowExportModal(true)} semiSmall primary>+ <>+ <DownloadIcon className='mr-1 h-5 w-5' strokeWidth={1.5} />+ {t('profileSettings.requestExport')}+ </>+ </Button>+ <div className='flex flex-wrap justify-center gap-2'>+ <Button+ onClick={() => {+ logout(true)+ }}+ semiSmall+ semiDanger+ >+ <>+ {/* We need this div for the button to match the height of the button after it */}+ <div className='h-5' />+ {t('profileSettings.logoutAll')}+ </>+ </Button>+ <Button onClick={() => setShowModal(true)} semiSmall semiDanger>+ <>+ <ExclamationTriangleIcon className='mr-1 h-5 w-5' />+ {t('profileSettings.delete')}+ </>+ </Button>+ </div>+ </div>+ </>+ )}</>- )}- </>- )- }-- if (activeTab === TAB_MAPPING.INTERFACE) {- return (- <>- {/* Timezone selector */}- <h3 className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'>- {t('profileSettings.timezone')}- </h3>- <div className='mt-4 grid grid-cols-1 gap-x-4 gap-y-6 lg:grid-cols-2'>- <div>- <TimezonePicker value={timezone} onChange={setTimezone} />- </div>- </div>- <Button className='mt-4' onClick={handleTimezoneSave} primary large>- {t('common.save')}- </Button>- {/* Timeformat selector (12 / 24 hour format) */}- <hr className='mt-5 border-gray-200 dark:border-gray-600' />- <h3 className='mt-2 text-lg font-bold text-gray-900 dark:text-gray-50'>- {t('profileSettings.timeFormat')}- </h3>- <div className='mt-4 grid grid-cols-1 gap-x-4 gap-y-6 lg:grid-cols-2'>- <div>- <Select- title={t(`profileSettings.${form.timeFormat}`)}- label={t('profileSettings.selectTimeFormat')}- className='w-full'- items={translatedTimeFormat}- onSelect={(f) =>- setForm((prev) => ({- ...prev,- timeFormat: timeFormatArray[_findIndex(translatedTimeFormat, (freq) => freq === f)],- }))- }- capitalise- />- </div>- </div>- <Button className='mt-4' onClick={setAsyncTimeFormat} primary large>- {t('common.save')}- </Button>-- {/* UI Settings */}- <hr className='mt-5 border-gray-200 dark:border-gray-600' />- <h3 className='mt-2 text-lg font-bold text-gray-900 dark:text-gray-50'>- {t('profileSettings.uiSettings')}- </h3>- <Checkbox- checked={user?.showLiveVisitorsInTitle}- onChange={handleShowLiveVisitorsSave}- disabled={settingUpdating}- name='active'- classes={{- label: 'mt-4',- }}- label={t('profileSettings.showVisitorsInTitle')}- />- </>- )- }+ )+ }- if (activeTab === TAB_MAPPING.COMMUNICATIONS) {- return (- <>- {!isSelfhosted ? (+ if (activeTab === TAB_MAPPING.INTERFACE) {+ return (<>- {/* Email reports frequency selector (e.g. monthly, weekly, etc.) */}+ <h3 className='flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'>+ {t('profileSettings.timezone')}+ </h3>+ <div className='mt-4 grid grid-cols-1 gap-x-4 gap-y-6 lg:grid-cols-2'>+ <div>+ <TimezonePicker value={timezone} onChange={setTimezone} />+ </div>+ </div>+ <Button className='mt-4' onClick={handleTimezoneSave} primary large>+ {t('common.save')}+ </Button>+ {/* Timeformat selector (12 / 24 hour format) */}+ <hr className='mt-5 border-gray-200 dark:border-gray-600' /><h3 className='mt-2 text-lg font-bold text-gray-900 dark:text-gray-50'>- {t('profileSettings.email')}+ {t('profileSettings.timeFormat')}</h3><div className='mt-4 grid grid-cols-1 gap-x-4 gap-y-6 lg:grid-cols-2'><div><Select- title={t(`profileSettings.${reportFrequency}`)}- label={t('profileSettings.frequency')}+ title={t(`profileSettings.${form.timeFormat}`)}+ label={t('profileSettings.selectTimeFormat')}className='w-full'- items={translatedFrequencies}+ items={translatedTimeFormat}onSelect={(f) =>- setReportFrequency(- reportFrequencies[_findIndex(translatedFrequencies, (freq) => freq === f)],- )+ setForm((prev) => ({+ ...prev,+ timeFormat: timeFormatArray[_findIndex(translatedTimeFormat, (freq) => freq === f)],+ }))}capitalise/></div></div>- <Button className='mt-4' onClick={handleReportSave} primary large>+ <Button className='mt-4' onClick={setAsyncTimeFormat} primary large>{t('common.save')}</Button>+ {/* UI Settings */}<hr className='mt-5 border-gray-200 dark:border-gray-600' />- {/* Integrations setup */}- <h3- id='integrations'- className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'- >- {t('profileSettings.integrations')}+ <h3 className='mt-2 text-lg font-bold text-gray-900 dark:text-gray-50'>+ {t('profileSettings.uiSettings')}</h3>- <Integrations handleIntegrationSave={handleIntegrationSave} />- {user?.isTelegramChatIdConfirmed ? (- <Checkbox- checked={user?.receiveLoginNotifications}- onChange={handleReceiveLoginNotifications}- disabled={settingUpdating}- name='receiveLoginNotifications'- classes={{- label: 'mt-4',- }}- label={t('profileSettings.receiveLoginNotifications')}- />+ <Checkbox+ checked={user?.showLiveVisitorsInTitle}+ onChange={handleShowLiveVisitorsSave}+ disabled={settingUpdating}+ name='active'+ classes={{+ label: 'mt-4',+ }}+ label={t('profileSettings.showVisitorsInTitle')}+ />+ </>+ )+ }++ if (activeTab === TAB_MAPPING.COMMUNICATIONS) {+ return (+ <>+ {!isSelfhosted ? (+ <>+ {/* Email reports frequency selector (e.g. monthly, weekly, etc.) */}+ <h3 className='text-lg font-bold text-gray-900 dark:text-gray-50'>+ {t('profileSettings.email')}+ </h3>+ <div className='mt-4 grid grid-cols-1 gap-x-4 gap-y-6 lg:grid-cols-2'>+ <div>+ <Select+ title={t(`profileSettings.${reportFrequency}`)}+ label={t('profileSettings.frequency')}+ className='w-full'+ items={translatedFrequencies}+ onSelect={(f) =>+ setReportFrequency(+ reportFrequencies[_findIndex(translatedFrequencies, (freq) => freq === f)],+ )+ }+ capitalise+ />+ </div>+ </div>+ <Button className='mt-4' onClick={handleReportSave} primary large>+ {t('common.save')}+ </Button>++ <hr className='mt-5 border-gray-200 dark:border-gray-600' />+ {/* Integrations setup */}+ <h3+ id='integrations'+ className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'+ >+ {t('profileSettings.integrations')}+ </h3>+ <Integrations handleIntegrationSave={handleIntegrationSave} />+ {user?.isTelegramChatIdConfirmed ? (+ <Checkbox+ checked={user?.receiveLoginNotifications}+ onChange={handleReceiveLoginNotifications}+ disabled={settingUpdating}+ name='receiveLoginNotifications'+ classes={{+ label: 'mt-4',+ }}+ label={t('profileSettings.receiveLoginNotifications')}+ />+ ) : null}+ </>) : null}</>- ) : null}- </>- )- }+ )+ }- if (activeTab === TAB_MAPPING.REFERRALS) {- return (- <>- <h3- id='socialisations'- className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'- >- {t('profileSettings.referral.title')}- </h3>- <Referral />- </>- )- }+ if (activeTab === TAB_MAPPING.REFERRALS) {+ return (+ <>+ <h3+ id='socialisations'+ className='flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'+ >+ {t('profileSettings.referral.title')}+ </h3>+ <Referral />+ </>+ )+ }- return null- }}- </ClientOnly>+ return null+ }}+ </ClientOnly>+ </section>+ </div></form><PaidFeature isOpened={isPaidFeatureOpened} onClose={() => setIsPaidFeatureOpened(false)} />