/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/git/routes.tsx
31 строка
939 B
chrisnojima
move to vite (#29386)
09 июл 2026, 00:46
Не верифицирован
09 июл 2026, 00:46
bcd1945
Код
Авторство
О чём код?
import * as React from 'react' import * as C from '@/constants' import {HeaderTitle, HeaderRightActions} from './nav-header' import {defineRouteMap} from '@/constants/types/router' export const newRoutes = defineRouteMap({ gitRoot: C.makeScreen( React.lazy(async () => import('.')), { getOptions: isMobile ? {title: 'Git'} : () => { return { headerRightActions: HeaderRightActions, headerTitle: HeaderTitle, title: 'Git', } }, } ), }) export const newModalRoutes = defineRouteMap({ gitDeleteRepo: C.makeScreen(React.lazy(async () => import('./delete-repo')), { getOptions: {title: 'Delete repo?'}, }), gitNewRepo: C.makeScreen(React.lazy(async () => import('./new-repo')), { getOptions: {title: 'New repository'}, }), gitSelectChannel: C.makeScreen(React.lazy(async () => import('./select-channel'))), })