|
1 | 1 | import { Button, Stack, px, rem } from '@mantine/core';
|
2 |
| -import IconButton from '@/components/Button/IconButton'; |
3 | 2 | import { IconFilterHeart, IconMaximize, IconTable, IconTrash } from '@tabler/icons-react';
|
4 | 3 | import { STREAM_PRIMARY_TOOLBAR_CONTAINER_HEIGHT, STREAM_PRIMARY_TOOLBAR_HEIGHT } from '@/constants/theme';
|
5 |
| -import TimeRange from '@/components/Header/TimeRange'; |
6 |
| -import RefreshInterval from '@/components/Header/RefreshInterval'; |
7 |
| -import RefreshNow from '@/components/Header/RefreshNow'; |
8 |
| -import Querier from './Querier'; |
9 | 4 | import { appStoreReducers, useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
|
| 5 | +import { filterStoreReducers, useFilterStore } from '../providers/FilterProvider'; |
| 6 | +import { logsStoreReducers, useLogsStore } from '../providers/LogsProvider'; |
10 | 7 | import { useCallback, useEffect } from 'react';
|
11 |
| -import StreamDropdown from '@/components/Header/StreamDropdown'; |
12 |
| -import { notifications } from '@mantine/notifications'; |
13 | 8 | import { useNavigate, useParams } from 'react-router-dom';
|
14 |
| -import _ from 'lodash'; |
15 |
| -import StreamingButton from '@/components/Header/StreamingButton'; |
| 9 | + |
| 10 | +import { CorrelationIcon } from '@/components/Navbar/components/CorrelationIcon'; |
| 11 | +import IconButton from '@/components/Button/IconButton'; |
| 12 | +import Querier from './Querier'; |
| 13 | +import RefreshInterval from '@/components/Header/RefreshInterval'; |
| 14 | +import RefreshNow from '@/components/Header/RefreshNow'; |
16 | 15 | import ShareButton from '@/components/Header/ShareButton';
|
17 |
| -import { useLogsStore, logsStoreReducers } from '../providers/LogsProvider'; |
18 |
| -import { filterStoreReducers, useFilterStore } from '../providers/FilterProvider'; |
| 16 | +import StreamDropdown from '@/components/Header/StreamDropdown'; |
| 17 | +import StreamingButton from '@/components/Header/StreamingButton'; |
| 18 | +import TimeRange from '@/components/Header/TimeRange'; |
| 19 | +import _ from 'lodash'; |
19 | 20 | import classes from './styles/PrimaryToolbar.module.css';
|
20 |
| -import { CorrelationIcon } from '@/components/Navbar/components/CorrelationIcon'; |
| 21 | +import { notifications } from '@mantine/notifications'; |
21 | 22 |
|
22 | 23 | const { toggleDeleteModal, onToggleView } = logsStoreReducers;
|
23 | 24 | const { toggleSavedFiltersModal } = filterStoreReducers;
|
24 |
| -const renderMaximizeIcon = () => <IconMaximize size={px('1rem')} stroke={1.5} />; |
| 25 | +const renderMaximizeIcon = () => <IconMaximize color="#495057" size={px('1rem')} stroke={1.5} />; |
25 | 26 | const renderDeleteIcon = () => <IconTrash data-id="delete-stream-btn" size={px('1rem')} stroke={1.5} />;
|
26 | 27 |
|
27 | 28 | export const MaximizeButton = () => {
|
@@ -52,7 +53,7 @@ const AddCorrelationButton = () => {
|
52 | 53 | className={classes.savedFiltersBtn}
|
53 | 54 | h="100%"
|
54 | 55 | onClick={() => navigate('/correlation')}
|
55 |
| - leftSection={<CorrelationIcon stroke={'#000000'} strokeWidth={1} />}> |
| 56 | + leftSection={<CorrelationIcon stroke={'#495057'} strokeWidth={1} />}> |
56 | 57 | Correlate
|
57 | 58 | </Button>
|
58 | 59 | );
|
@@ -81,7 +82,7 @@ const ViewToggle = () => {
|
81 | 82 | h="100%"
|
82 | 83 | style={{
|
83 | 84 | backgroundColor: isActive ? '#535BEB' : 'white',
|
84 |
| - color: isActive ? 'white' : 'black', |
| 85 | + color: isActive ? 'white' : '#495057', |
85 | 86 | }}
|
86 | 87 | onClick={onToggle}
|
87 | 88 | leftSection={<IconTable {...iconProps} />}>
|
|
0 commit comments