Add admin help center entry points
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { User, Settings, Globe, Moon, Download, LogOut } from 'lucide-react';
|
||||
import { User, Settings, Globe, Moon, Download, LogOut, HelpCircle } from 'lucide-react';
|
||||
import { Avatar } from '@tamagui/avatar';
|
||||
import { Card } from '@tamagui/card';
|
||||
import { YStack, XStack } from '@tamagui/stacks';
|
||||
@@ -13,7 +13,7 @@ import { CTAButton } from './components/Primitives';
|
||||
import { MobileSelect } from './components/FormControls';
|
||||
import { useAuth } from '../auth/context';
|
||||
import { fetchTenantProfile } from '../api';
|
||||
import { adminPath, ADMIN_DATA_EXPORTS_PATH, ADMIN_PROFILE_ACCOUNT_PATH } from '../constants';
|
||||
import { adminPath, ADMIN_DATA_EXPORTS_PATH, ADMIN_PROFILE_ACCOUNT_PATH, ADMIN_FAQ_PATH } from '../constants';
|
||||
import i18n from '../i18n';
|
||||
import { useAppearance } from '@/hooks/use-appearance';
|
||||
import { useBackNavigation } from './hooks/useBackNavigation';
|
||||
@@ -180,6 +180,21 @@ export default function MobileProfilePage() {
|
||||
</YGroup.Item>
|
||||
</>
|
||||
) : null}
|
||||
<YGroup.Item>
|
||||
<ListItem
|
||||
hoverTheme
|
||||
pressTheme
|
||||
paddingVertical="$2"
|
||||
paddingHorizontal="$3"
|
||||
title={
|
||||
<Text fontSize="$sm" color={textColor}>
|
||||
{t('common.help', 'Help')}
|
||||
</Text>
|
||||
}
|
||||
iconAfter={<HelpCircle size={18} color={subtle} />}
|
||||
onPress={() => navigate(ADMIN_FAQ_PATH)}
|
||||
/>
|
||||
</YGroup.Item>
|
||||
</YGroup>
|
||||
</YStack>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user