mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 18:32:00 +08:00
feat: add signoz cloud button in header (#2694)
* feat: add signoz cloud button in header * chore: gap is updated --------- Co-authored-by: Vishal Sharma <makeavish786@gmail.com>
This commit is contained in:
parent
c32b8638a4
commit
b6a455d264
@ -3,8 +3,7 @@ import {
|
||||
CaretUpFilled,
|
||||
LogoutOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import type { MenuProps } from 'antd';
|
||||
import { Divider, Dropdown, Space, Typography } from 'antd';
|
||||
import { Button, Divider, Dropdown, MenuProps, Space, Typography } from 'antd';
|
||||
import { Logout } from 'api/utils';
|
||||
import ROUTES from 'constants/routes';
|
||||
import Config from 'container/ConfigDropdown';
|
||||
@ -91,6 +90,13 @@ function HeaderContainer(): JSX.Element {
|
||||
[onToggleHandler, onLogoutKeyDown],
|
||||
);
|
||||
|
||||
const onClickSignozCloud = (): void => {
|
||||
window.open(
|
||||
'https://signoz.io/pricing/?utm_source=product_navbar&utm_medium=frontend',
|
||||
'_blank',
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<Header>
|
||||
<Container>
|
||||
@ -106,7 +112,11 @@ function HeaderContainer(): JSX.Element {
|
||||
</NavLinkWrapper>
|
||||
</NavLink>
|
||||
|
||||
<Space style={{ height: '100%' }} align="center">
|
||||
<Space size="middle" align="center">
|
||||
<Button onClick={onClickSignozCloud} type="primary">
|
||||
Try Signoz Cloud
|
||||
</Button>
|
||||
|
||||
<Config frontendId="tooltip" />
|
||||
|
||||
<ToggleButton
|
||||
|
Loading…
x
Reference in New Issue
Block a user