fix: tabs is updated (#3260)

This commit is contained in:
Palash Gupta 2023-08-04 12:25:01 +05:30 committed by GitHub
parent e61b0a4d67
commit 7fb29ad2ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 11 deletions

View File

@ -1,13 +1,5 @@
import { Tabs } from 'antd';
import { themeColors } from 'constants/theme';
import styled from 'styled-components';
export const TabsStyled = styled(Tabs)`
& .ant-tabs-nav {
background-color: ${themeColors.lightBlack};
}
`;
export const ActionsWrapper = styled.div`
display: flex;
justify-content: flex-end;

View File

@ -1,4 +1,4 @@
import { TabsProps } from 'antd';
import { Tabs, TabsProps } from 'antd';
import TabLabel from 'components/TabLabel';
import { QueryParams } from 'constants/query';
import {
@ -40,7 +40,7 @@ import {
import { DataSource, StringOperators } from 'types/common/queryBuilder';
import { GlobalReducer } from 'types/reducer/globalTime';
import { ActionsWrapper, TabsStyled } from './LogsExplorerViews.styled';
import { ActionsWrapper } from './LogsExplorerViews.styled';
function LogsExplorerViews(): JSX.Element {
const { notifications } = useNotifications();
@ -480,7 +480,7 @@ function LogsExplorerViews(): JSX.Element {
/>
</ActionsWrapper>
)}
<TabsStyled
<Tabs
items={tabsItems}
defaultActiveKey={panelType || PANEL_TYPES.LIST}
activeKey={panelType || PANEL_TYPES.LIST}