From 19e4537e3a459f039f34d2fe1174f5f583730ad0 Mon Sep 17 00:00:00 2001 From: Roie Natan Date: Thu, 3 Aug 2023 11:09:42 +1200 Subject: [PATCH] added hide icon ; correct color for icons --- .../Chat/ChatMessage/ChatMessage.module.scss | 4 -- .../ElementDropdown.module.scss | 4 ++ .../ElementDropdown/ElementDropdown.tsx | 8 +++- src/shared/icons/hide.icon.tsx | 40 +++++++++++++++++++ src/shared/icons/index.ts | 1 + 5 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 src/shared/icons/hide.icon.tsx diff --git a/src/shared/components/Chat/ChatMessage/ChatMessage.module.scss b/src/shared/components/Chat/ChatMessage/ChatMessage.module.scss index 4b2555cc40..3aa55110ae 100644 --- a/src/shared/components/Chat/ChatMessage/ChatMessage.module.scss +++ b/src/shared/components/Chat/ChatMessage/ChatMessage.module.scss @@ -210,10 +210,6 @@ .custom-dropdown-wrapper__menu { z-index: $dropdown-z-index; } - - svg { - color: $light-gray-2; - } } .menuArrowButton { diff --git a/src/shared/components/ElementDropdown/ElementDropdown.module.scss b/src/shared/components/ElementDropdown/ElementDropdown.module.scss index c13f41cc38..0886a738d4 100644 --- a/src/shared/components/ElementDropdown/ElementDropdown.module.scss +++ b/src/shared/components/ElementDropdown/ElementDropdown.module.scss @@ -20,3 +20,7 @@ margin-left: 1rem; } } + +.redIcon { + color: red; +} diff --git a/src/shared/components/ElementDropdown/ElementDropdown.tsx b/src/shared/components/ElementDropdown/ElementDropdown.tsx index ba2c1cfa7f..ca9d375a4c 100644 --- a/src/shared/components/ElementDropdown/ElementDropdown.tsx +++ b/src/shared/components/ElementDropdown/ElementDropdown.tsx @@ -9,6 +9,7 @@ import { useNotification, useModal } from "@/shared/hooks"; import { CopyIcon, Edit3Icon, + HideIcon, ReplyIcon, Report2Icon, Share3Icon, @@ -213,7 +214,10 @@ const ElementDropdown: FC = ({ ) { items.push({ text: ( - Hide +
+ + Hide +
), searchText: "Hide", value: ElementDropdownMenuItems.Hide, @@ -224,7 +228,7 @@ const ElementDropdown: FC = ({ items.push({ text: (
- + Delete diff --git a/src/shared/icons/hide.icon.tsx b/src/shared/icons/hide.icon.tsx new file mode 100644 index 0000000000..32d65942b9 --- /dev/null +++ b/src/shared/icons/hide.icon.tsx @@ -0,0 +1,40 @@ +import React, { ReactElement } from "react"; + +interface HideIconProps { + className?: string; +} + +export default function HideIcon({ className }: HideIconProps): ReactElement { + return ( + + + + + + ); +} diff --git a/src/shared/icons/index.ts b/src/shared/icons/index.ts index 7dc3bce44c..02183e0235 100644 --- a/src/shared/icons/index.ts +++ b/src/shared/icons/index.ts @@ -60,3 +60,4 @@ export { default as FileIcon } from "./file.icon"; export { default as EmojiIcon } from "./emoji.icon"; export { default as ReplyIcon } from "./reply.icon"; export { default as CopyIcon } from "./copy.icon"; +export { default as HideIcon } from "./hide.icon";