upd
This commit is contained in:
@@ -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<HTMLTextAreaElement>(null);
|
||||
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
import { IProject, Media } from '../types/IProject';
|
||||
|
||||
export const projects: IProject<Media>[] = [
|
||||
{
|
||||
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: Media.video,
|
||||
id: Math.random(),
|
||||
},
|
||||
{
|
||||
src: '/images/projects/richstaker.jpg',
|
||||
year: '2025',
|
||||
tags: ['Симулятор'],
|
||||
title: 'Интерактивный симулятор управления погрузчиком «Ричстакер»',
|
||||
media: Media.img,
|
||||
id: Math.random(),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user