From 6879e8aba660a4f4173f35ab5ed007170a76f101 Mon Sep 17 00:00:00 2001 From: IlyaDoronin Date: Fri, 28 Jul 2023 17:03:42 +0300 Subject: [PATCH] fix: user icon --- src/assets/icons/user.svg | 6 +++--- src/pages/dashboard/ModalUser/index.tsx | 20 ++++++++++++++------ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/assets/icons/user.svg b/src/assets/icons/user.svg index 190572a..d919ed6 100644 --- a/src/assets/icons/user.svg +++ b/src/assets/icons/user.svg @@ -1,4 +1,4 @@ - - - + + + diff --git a/src/pages/dashboard/ModalUser/index.tsx b/src/pages/dashboard/ModalUser/index.tsx index b49343c..8e4effb 100644 --- a/src/pages/dashboard/ModalUser/index.tsx +++ b/src/pages/dashboard/ModalUser/index.tsx @@ -27,10 +27,18 @@ import forwardIcon from "@root/assets/icons/forward.svg"; import type { SyntheticEvent } from "react"; const TABS = [ - { name: "Пользователь", icon: UserIcon }, - { name: "Покупка товаров и услуг", icon: PackageIcon }, - { name: "Транзакции", icon: TransactionsIcon }, - { name: "Верификация", icon: CheckIcon }, + { name: "Пользователь", icon: UserIcon, activeStyles: { fill: "#7E2AEA" } }, + { + name: "Покупка товаров и услуг", + icon: PackageIcon, + activeStyles: { stroke: "#7E2AEA" }, + }, + { + name: "Транзакции", + icon: TransactionsIcon, + activeStyles: { stroke: "#7E2AEA" }, + }, + { name: "Верификация", icon: CheckIcon, activeStyles: { stroke: "#7E2AEA" } }, ]; const ModalUser = () => { @@ -128,7 +136,7 @@ const ModalUser = () => { }} TabIndicatorProps={{ style: { background: "transparent" } }} > - {TABS.map(({ name, icon: Icon }) => ( + {TABS.map(({ name, icon: Icon, activeStyles }) => ( } iconPosition="start" @@ -150,7 +158,7 @@ const ModalUser = () => { borderRadius: "12px", color: "#7E2AEA", background: "rgba(126, 42, 234, 0.07)", - "& svg": { stroke: "#7E2AEA" }, + "& svg": activeStyles, }, }} />