diff --git a/src/food-market.web/src/App.tsx b/src/food-market.web/src/App.tsx index 031938d..63cf853 100644 --- a/src/food-market.web/src/App.tsx +++ b/src/food-market.web/src/App.tsx @@ -3,7 +3,6 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { LoginPage } from '@/pages/LoginPage' import { DashboardPage } from '@/pages/DashboardPage' import { CountriesPage } from '@/pages/CountriesPage' -import { CurrenciesPage } from '@/pages/CurrenciesPage' import { UnitsOfMeasurePage } from '@/pages/UnitsOfMeasurePage' import { PriceTypesPage } from '@/pages/PriceTypesPage' import { StoresPage } from '@/pages/StoresPage' @@ -51,7 +50,6 @@ export default function App() { } /> } /> } /> - } /> } /> } /> } /> diff --git a/src/food-market.web/src/components/AppLayout.tsx b/src/food-market.web/src/components/AppLayout.tsx index 587a007..643a947 100644 --- a/src/food-market.web/src/components/AppLayout.tsx +++ b/src/food-market.web/src/components/AppLayout.tsx @@ -6,7 +6,7 @@ import { logout } from '@/lib/auth' import { cn } from '@/lib/utils' import { LayoutDashboard, Package, FolderTree, Ruler, Tag, - Users, Warehouse, Store as StoreIcon, Globe, Coins, LogOut, Download, + Users, Warehouse, Store as StoreIcon, Globe, LogOut, Download, Boxes, History, TruckIcon, ShoppingCart, Settings, Menu, X, } from 'lucide-react' import { Logo } from './Logo' @@ -53,7 +53,6 @@ function buildNav(): NavSection[] { ]}, { group: 'Справочники', items: [ { to: '/catalog/countries', icon: Globe, label: 'Страны' }, - { to: '/catalog/currencies', icon: Coins, label: 'Валюты' }, ]}, { group: 'Импорт', items: [ { to: '/admin/import/moysklad', icon: Download, label: 'МойСклад' }, diff --git a/src/food-market.web/src/pages/CurrenciesPage.tsx b/src/food-market.web/src/pages/CurrenciesPage.tsx deleted file mode 100644 index a5e9668..0000000 --- a/src/food-market.web/src/pages/CurrenciesPage.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { ListPageShell } from '@/components/ListPageShell' -import { DataTable } from '@/components/DataTable' -import { Pagination } from '@/components/Pagination' -import { SearchBar } from '@/components/SearchBar' -import { useCatalogList } from '@/lib/useCatalog' -import type { Currency } from '@/lib/types' - -export function CurrenciesPage() { - const { data, isLoading, page, setPage, search, setSearch, sortKey, sortOrder, setSort } = useCatalogList('/api/catalog/currencies') - - return ( - } - footer={data && data.total > 0 && ( - - )} - > - r.id} - sortKey={sortKey} - sortOrder={sortOrder} - onSortChange={setSort} - columns={[ - { header: 'Код', width: '90px', sortKey: 'code', cell: (r) => {r.code} }, - { header: 'Название', sortKey: 'name', cell: (r) => r.name }, - { header: 'Символ', width: '100px', sortKey: 'symbol', cell: (r) => {r.symbol} }, - ]} - /> - - ) -}