- {item.name}
+ {item.link ? (
+ {item.name}
+ ) : (
+ item.name
+ )}
@@ -27,20 +28,4 @@ function BeautyButton({ children, onClick }: TBeautyButtonProps) {
);
}
-//MagePhoneFill
-const PhoneIcon = (props: SVGProps) => (
-
-);
-
export { BeautyButton };
diff --git a/src/shared/const/menu.ts b/src/shared/const/menu.ts
index 1a5c58d..9af04a4 100644
--- a/src/shared/const/menu.ts
+++ b/src/shared/const/menu.ts
@@ -4,6 +4,7 @@ import { ROUTES } from './route';
export const baseMenu: TMenu = [
{
name: 'Экспертиза',
+ link: ROUTES.EXPERTIZA,
children: [
{
name: 'Автотехническая',
diff --git a/src/shared/ui/icon/ui.tsx b/src/shared/ui/icon/ui.tsx
index 54ec610..63dc370 100644
--- a/src/shared/ui/icon/ui.tsx
+++ b/src/shared/ui/icon/ui.tsx
@@ -6,7 +6,7 @@ import type { SVGProps } from 'react';
type SVGIcon = SVGProps;
//RiMapPinLine
-function Map(props: SVGIcon) {
+const Map = (props: SVGIcon) => {
return (
);
-}
+};
//MynauiEnvelope
-function Envelope(props: SVGIcon) {
+const Envelope = (props: SVGIcon) => {
return (
);
-}
+};
//IcBaselineWhatsapp
-function Whatsapp(props: SVGIcon) {
+const Whatsapp = (props: SVGIcon) => {
return (
);
-}
+};
//IcBaselineTelegram
-function Telegram(props: SVGIcon) {
+const Telegram = (props: SVGIcon) => {
return (
);
-}
+};
// CiPhone
-function Phone(props: SVGIcon) {
+const Phone = (props: SVGIcon) => {
return (
);
-}
+};
//HugeiconsVk
-function Vk(props: SVGIcon) {
+const Vk = (props: SVGIcon) => {
return (
);
-}
+};
//MdiYoutube
-function Youtube(props: SVGIcon) {
+const Youtube = (props: SVGIcon) => {
return (
);
-}
+};
//WeuiArrowFilled
-export function MenuArrow(props: SVGIcon) {
+const MenuArrow = (props: SVGIcon) => {
return (
);
-}
+};
+
+//MagePhoneFill
+const BtnPhone = (props: SVGIcon) => (
+
+);
const Icons = Object.assign(
{},
- { Map, Envelope, Whatsapp, Telegram, Phone, Vk, Youtube, MenuArrow },
+ {
+ Map,
+ Envelope,
+ Whatsapp,
+ Telegram,
+ Phone,
+ Vk,
+ Youtube,
+ MenuArrow,
+ BtnPhone,
+ },
);
export { Icons };