From 8cb64dd5baef51ed682c82ede89e7d4a5f456ea7 Mon Sep 17 00:00:00 2001 From: maxim Date: Sun, 16 Mar 2025 22:18:26 +0300 Subject: [PATCH] finalize `country, city, carrier` routes --- src/App.tsx | 2 +- src/components/CustomDataGrid.tsx | 4 +++- src/pages/carrier/list.tsx | 20 +++++++++----------- src/pages/carrier/show.tsx | 3 ++- src/pages/city/list.tsx | 4 +--- src/pages/city/show.tsx | 3 ++- src/pages/country/list.tsx | 9 +++------ src/pages/country/show.tsx | 2 +- 8 files changed, 22 insertions(+), 25 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index ef051bc..ab7cc23 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -181,7 +181,7 @@ function App() { } /> } /> - } /> + } /> } /> diff --git a/src/components/CustomDataGrid.tsx b/src/components/CustomDataGrid.tsx index 00ded27..5341490 100644 --- a/src/components/CustomDataGrid.tsx +++ b/src/components/CustomDataGrid.tsx @@ -3,6 +3,8 @@ import {Stack, Button} from '@mui/material' import React, {useState, useEffect, useMemo} from 'react' import Cookies from 'js-cookie' +import {localeText} from '../locales/ru/localeText' + interface CustomDataGridProps extends DataGridProps { hasCoordinates?: boolean } @@ -69,7 +71,7 @@ export const CustomDataGrid = ({hasCoordinates = false, columns = [], ...props}: return ( - + {hasCoordinates && (