From 30f039098b183609d1666265c9aa05216148b4f8 Mon Sep 17 00:00:00 2001 From: Vladislav Kibenko Date: Mon, 1 Apr 2024 19:29:47 +0300 Subject: [PATCH] refactor(app): refactor routes a bit --- src/components/App/App.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/components/App/App.tsx b/src/components/App/App.tsx index 1a7f33d..b4ec1d0 100644 --- a/src/components/App/App.tsx +++ b/src/components/App/App.tsx @@ -14,15 +14,6 @@ import { import { routes } from '~/navigation/routes.tsx'; -const Inner: FC = () => { - return ( - - {routes.map((route) => )} - } /> - - ); -}; - export const App: FC = () => { const tmaNavigator = useMemo(createNavigator, []); const [location, navigator] = useNavigatorIntegration(tmaNavigator); @@ -32,7 +23,10 @@ export const App: FC = () => { return ( - + + {routes.map((route) => )} + } /> + ); };