From 7d7addbc489a1c98b366419fb7ab10448af0a0b0 Mon Sep 17 00:00:00 2001 From: Lanskikh Date: Thu, 2 Oct 2025 19:06:40 +0500 Subject: [PATCH] upd --- src/components/Main/ModalWithForm.tsx | 26 ++++++++++++++------------ src/consts/projects.ts | 16 ++++++++-------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/components/Main/ModalWithForm.tsx b/src/components/Main/ModalWithForm.tsx index c525022..1f629f4 100644 --- a/src/components/Main/ModalWithForm.tsx +++ b/src/components/Main/ModalWithForm.tsx @@ -2,7 +2,7 @@ import { FormEvent, useCallback, useEffect, - useMemo, + // useMemo, useRef, useState, } from 'react'; @@ -15,8 +15,8 @@ import { Button } from '../../ui/Button'; import { useModalStore } from '../../store/modalStore'; import { SelectPhoneCode } from './SelectPhoneCode'; import { Country } from 'react-phone-number-input'; -import { getExampleNumber } from 'libphonenumber-js'; -import examples from 'libphonenumber-js/mobile/examples'; +// import { getExampleNumber } from 'libphonenumber-js'; +// import examples from 'libphonenumber-js/mobile/examples'; import { ClassNameWrapper } from '../../hocs/ClassNameWrapper'; import { NavLink } from 'react-router-dom'; @@ -32,15 +32,17 @@ export function ModalWithForm() { const [isLoading, setIsLoading] = useState(false); const [isSend, setIsSend] = useState(false); - const placeholder = useMemo( - () => - getExampleNumber(country, examples) - ?.formatInternational() - .split(' ') - .slice(1) - .join(' '), - [country], - ); + const placeholder = '900 000 00 00'; + + // const placeholder = useMemo( + // () => + // getExampleNumber(country, examples) + // ?.formatInternational() + // .split(' ') + // .slice(1) + // .join(' '), + // [country], + // ); const textAreaRef = useRef(null); diff --git a/src/consts/projects.ts b/src/consts/projects.ts index 4ca203a..b7816a5 100644 --- a/src/consts/projects.ts +++ b/src/consts/projects.ts @@ -1,6 +1,14 @@ import { IProject, Media } from '../types/IProject'; export const projects: IProject[] = [ + { + src: '/images/projects/richstaker.jpg', + year: '2025', + tags: ['Симулятор'], + title: 'Интерактивный симулятор управления погрузчиком «Ричстакер»', + media: Media.img, + id: Math.random(), + }, { src: '/images/projects/loader.jpg', tags: ['Симулятор'], @@ -73,12 +81,4 @@ export const projects: IProject[] = [ media: Media.video, id: Math.random(), }, - { - src: '/images/projects/richstaker.jpg', - year: '2025', - tags: ['Симулятор'], - title: 'Интерактивный симулятор управления погрузчиком «Ричстакер»', - media: Media.img, - id: Math.random(), - }, ];