From dff69d2b75037175b3ba58bcfec526fa1701eb00 Mon Sep 17 00:00:00 2001 From: Lanskikh Date: Tue, 27 Jan 2026 15:41:08 +0500 Subject: [PATCH] upd --- src/components/modals/MapPointFormModal.tsx | 40 +++++++++++---------- src/consts/projectsTags.ts | 22 ++++++------ 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/src/components/modals/MapPointFormModal.tsx b/src/components/modals/MapPointFormModal.tsx index a4c1139..12d0014 100644 --- a/src/components/modals/MapPointFormModal.tsx +++ b/src/components/modals/MapPointFormModal.tsx @@ -75,15 +75,17 @@ export function MapPointProjectFormModal({ className="px-8 py-7 rounded-2xl outline-none bg-[#37393B99] bg-no-repeat bg-[right_32px_top_24px] h-fit font-medium btnl appearance-none" > - {companies?.map((company) => ( - - ))} + {companies + ?.sort((a, b) => a.title.localeCompare(b.title)) + .map((company) => ( + + ))} } @@ -122,15 +124,17 @@ export function MapPointProjectFormModal({ (project) => project.city === (city ?? defaultValues?.city) ) */} - {projects?.map((project) => ( - - ))} + {projects + ?.sort((a, b) => a.title.localeCompare(b.title)) + .map((project) => ( + + ))} diff --git a/src/consts/projectsTags.ts b/src/consts/projectsTags.ts index 1737ac3..621fa62 100644 --- a/src/consts/projectsTags.ts +++ b/src/consts/projectsTags.ts @@ -1,17 +1,17 @@ -import { Product, ProductsNameLocale } from '@/types/Product'; +import { Product, ProductsNameLocale } from "@/types/Product"; export const projectsTags: Product[] = [ - 'Интерактивная презентация', - 'Удаленная демонстрация', - 'Архитектурная визуализация', - 'Создание сайтов', - 'Web-тур по 360 сферам', + "Интерактивная презентация", + "Удаленная демонстрация", + "Архитектурная визуализация", + "Создание сайтов", + // 'Web-тур по 360 сферам', ]; export const projectsTagsLocale: ProductsNameLocale[] = [ - 'interactive_presentation', - 'remote', - 'visualisation', - 'create_site', - 'web_tour', + "interactive_presentation", + "remote", + "visualisation", + "create_site", + // 'web_tour', ];