From 200db35c25de9b6757ca31c0886dd1b3308044f9 Mon Sep 17 00:00:00 2001 From: trashtemp <96388163+trashtemp@users.noreply.github.com> Date: Sat, 15 Jan 2022 13:33:04 +0100 Subject: [PATCH] fix(msgbar): removed IconButton dependency --- .../messaging/bars/MessageOverlayBar.tsx | 33 ++++++------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/src/components/common/messaging/bars/MessageOverlayBar.tsx b/src/components/common/messaging/bars/MessageOverlayBar.tsx index dd7c7acf..4eec2bd2 100644 --- a/src/components/common/messaging/bars/MessageOverlayBar.tsx +++ b/src/components/common/messaging/bars/MessageOverlayBar.tsx @@ -24,7 +24,6 @@ import { import { useClient } from "../../../../context/revoltjs/RevoltClient"; import Tooltip from "../../../common/Tooltip"; -import IconButton from "../../../ui/IconButton"; interface Props { message: MessageObject; @@ -63,9 +62,11 @@ const Entry = styled.div` flex-shrink: 0; cursor: pointer; transition: 0.2s ease background-color; + color: var(--secondary-foreground); &:hover { - background: var(--secondary-header); + background-color: var(--secondary-header); + color: var(--foreground); } &:focus { @@ -95,9 +96,7 @@ export const MessageOverlayBar = observer(({ message, queued }: Props) => { internalEmit("ReplyBar", "add", message)}> - - - + @@ -111,9 +110,7 @@ export const MessageOverlayBar = observer(({ message, queued }: Props) => { message._id, ) }> - - - + )} @@ -130,9 +127,7 @@ export const MessageOverlayBar = observer(({ message, queued }: Props) => { target: message, } as unknown as Screen) }> - - - + ) : undefined} @@ -145,9 +140,7 @@ export const MessageOverlayBar = observer(({ message, queued }: Props) => { queued, }) }> - - - + @@ -160,9 +153,7 @@ export const MessageOverlayBar = observer(({ message, queued }: Props) => { queued, }) }> - - - + @@ -174,9 +165,7 @@ export const MessageOverlayBar = observer(({ message, queued }: Props) => { queued, }) }> - - - + @@ -188,9 +177,7 @@ export const MessageOverlayBar = observer(({ message, queued }: Props) => { queued, }) }> - - - +