mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 09:25:58 +08:00
[Fix]: added the darktheme support for Action Column in Alerts Listing Table. (#3844)
* refactor: added the darktheme support * fix: typo --------- Co-authored-by: Ankit Nayan <ankit@signoz.io>
This commit is contained in:
parent
3341cb7396
commit
eddb607c9c
@ -2,6 +2,10 @@
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.Dropdown-button--dark {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.Dropdown-icon {
|
||||
font-size: 1.2rem;
|
||||
}
|
@ -2,8 +2,11 @@ import './DropDown.styles.scss';
|
||||
|
||||
import { EllipsisOutlined } from '@ant-design/icons';
|
||||
import { Button, Dropdown, MenuProps, Space } from 'antd';
|
||||
import { useIsDarkMode } from 'hooks/useDarkMode';
|
||||
|
||||
function DropDown({ element }: { element: JSX.Element[] }): JSX.Element {
|
||||
const isDarkMode = useIsDarkMode();
|
||||
|
||||
const items: MenuProps['items'] = element.map(
|
||||
(e: JSX.Element, index: number) => ({
|
||||
label: e,
|
||||
@ -15,7 +18,7 @@ function DropDown({ element }: { element: JSX.Element[] }): JSX.Element {
|
||||
<Dropdown menu={{ items }} className="Dropdown-container">
|
||||
<Button
|
||||
type="link"
|
||||
className="Dropdown-button"
|
||||
className={!isDarkMode ? 'Dropdown-button--dark' : 'Dropdown-button'}
|
||||
onClick={(e): void => e.preventDefault()}
|
||||
>
|
||||
<Space>
|
||||
|
Loading…
x
Reference in New Issue
Block a user