gitscope
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/routes/_dashboard/settings.lazy.tsx · v0.6.2
Source
1 b15ff05 Mrdn 2y ago
2 6a4fee1 Dawsh 2y ago import { Page, VStack } from '@marzneshin/components'
3 89eec32 Dawsh 2y ago import { CertificateWidget } from '@marzneshin/features/settings';
4 0178858 Dawsh 2y ago import { SubscriptionSettingsWidget } from '@marzneshin/features/subscription-settings';
5 0178858 Dawsh 2y ago import { createFileRoute } from '@tanstack/react-router';
6 b15ff05 Mrdn 2y ago import { useTranslation } from 'react-i18next'
7 9ddfbc8 Mardin 2y ago import { SudoRoute } from "@marzneshin/features/sudo-routes";
8 b15ff05 Mrdn 2y ago
9 b15ff05 Mrdn 2y ago export const Settings = () => {
10 b15ff05 Mrdn 2y ago const { t } = useTranslation()
11 b15ff05 Mrdn 2y ago return (
12 6a4fee1 Dawsh 2y ago <Page title={t('settings')} className="sm:flex flex-col lg:grid grid-cols-2 gap-3 h-full">
13 6a4fee1 Dawsh 2y ago {/* <ConfigurationWidget /> */}
14 6a4fee1 Dawsh 2y ago <VStack className="gap-3">
15 6a4fee1 Dawsh 2y ago <SubscriptionSettingsWidget />
16 6a4fee1 Dawsh 2y ago <CertificateWidget />
17 6a4fee1 Dawsh 2y ago </VStack>
18 0ef1346 Mrdn 2y ago </Page>
19 b15ff05 Mrdn 2y ago )
20 b15ff05 Mrdn 2y ago }
21 b15ff05 Mrdn 2y ago
22 b15ff05 Mrdn 2y ago export const Route = createFileRoute('/_dashboard/settings')({
23 9ddfbc8 Mardin 2y ago component: () => <SudoRoute> <Settings /> </SudoRoute>
24 b15ff05 Mrdn 2y ago })