fix: add privacy-policy
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
export const CONTACTS = {
|
||||
EMAIL: 'spo-71@yandex.ru',
|
||||
COMPANY: '«ООО ДИТРАСО»',
|
||||
WEB: 'ocenka-sochi.ru',
|
||||
PHONE: '+79002413434',
|
||||
EMAIL: 'spo-71@yandex.ru',
|
||||
ADDRESS: 'г. Сочи, Навагинская д. 9д, оф. 35',
|
||||
TELEGRAM: 'https://telegram.me/ditraso',
|
||||
WHATSAPP: 'https://api.whatsapp.com/send?phone=79002413434',
|
||||
YOUTUBE: 'https://www.youtube.com/',
|
||||
RUTUBE: 'https://rutube.ru/',
|
||||
TEXT: 'Консультация по обращению с сайта ocenka-sochi.ru',
|
||||
} as const;
|
||||
|
||||
10
src/shared/lib/phoneBeautify/phoneBeautify.ts
Normal file
10
src/shared/lib/phoneBeautify/phoneBeautify.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export function phoneBeautify(phone: string): string {
|
||||
const cleaned = phone.replace(/[^\d+]/g, '');
|
||||
|
||||
const match = cleaned.match(/^\+?7(\d{3})(\d{3})(\d{2})(\d{2})$/);
|
||||
if (!match) return phone;
|
||||
|
||||
const [, code, part1, part2, part3] = match;
|
||||
|
||||
return `+7 (${code}) ${part1}-${part2}-${part3}`;
|
||||
}
|
||||
Reference in New Issue
Block a user