mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-10 12:53:37 +00:00
fix elastic time picker ui css (#1204)
This commit is contained in:
parent
d11770681b
commit
d4b9fea5a7
@ -1,10 +1,12 @@
|
||||
import React, { useState, Fragment } from 'react';
|
||||
import { EuiProvider } from '@elastic/eui';
|
||||
|
||||
import {
|
||||
EuiSuperDatePicker,
|
||||
EuiSpacer,
|
||||
} from '@elastic/eui';
|
||||
import dateMath from '@elastic/datemath';
|
||||
import '@elastic/eui/dist/eui_theme_light.css';
|
||||
|
||||
interface TimeRangePickerProps {
|
||||
refreshStats: (startTime, endTime) => void;
|
||||
@ -72,6 +74,7 @@ export const TimeRangePicker: React.FC<TimeRangePickerProps> = ({ refreshStats }
|
||||
};
|
||||
|
||||
return (
|
||||
<EuiProvider>
|
||||
<Fragment>
|
||||
<EuiSpacer />
|
||||
<EuiSuperDatePicker
|
||||
@ -88,5 +91,6 @@ export const TimeRangePicker: React.FC<TimeRangePickerProps> = ({ refreshStats }
|
||||
/>
|
||||
<EuiSpacer />
|
||||
</Fragment>
|
||||
</EuiProvider>
|
||||
);
|
||||
};
|
||||
|
@ -7,8 +7,6 @@ import { TimelineBarChart } from "./TimelineBarChart/TimelineBarChart";
|
||||
import { LoadingWrapper } from "../../UI/withLoading/withLoading";
|
||||
import { ALL_PROTOCOLS, StatsMode } from "./consts";
|
||||
import { TimeRangePicker } from "./TimelineBarChart/TimeRangePicker/TimeTangePicker";
|
||||
import { EuiProvider } from '@elastic/eui';
|
||||
import '@elastic/eui/dist/eui_theme_light.css';
|
||||
|
||||
const modalStyle = {
|
||||
position: 'absolute',
|
||||
@ -68,7 +66,6 @@ export const TrafficStatsModal: React.FC<TrafficStatsModalProps> = ({ isOpen, on
|
||||
}, 500);
|
||||
|
||||
return (
|
||||
<EuiProvider>
|
||||
<Modal
|
||||
aria-labelledby="transition-modal-title"
|
||||
aria-describedby="transition-modal-description"
|
||||
@ -115,6 +112,5 @@ export const TrafficStatsModal: React.FC<TrafficStatsModalProps> = ({ isOpen, on
|
||||
</Box>
|
||||
</Fade>
|
||||
</Modal>
|
||||
</EuiProvider>
|
||||
);
|
||||
}
|
||||
|
@ -9,7 +9,6 @@
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<meta name="eui-style-insert">
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
|
Loading…
Reference in New Issue
Block a user