diff --git a/ui-common/src/components/modals/TrafficStatsModal/TimelineBarChart/TimeRangePicker/TimeTangePicker.tsx b/ui-common/src/components/modals/TrafficStatsModal/TimelineBarChart/TimeRangePicker/TimeTangePicker.tsx index 725fdb4ed..d5a31fb72 100644 --- a/ui-common/src/components/modals/TrafficStatsModal/TimelineBarChart/TimeRangePicker/TimeTangePicker.tsx +++ b/ui-common/src/components/modals/TrafficStatsModal/TimelineBarChart/TimeRangePicker/TimeTangePicker.tsx @@ -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,21 +74,23 @@ export const TimeRangePicker: React.FC = ({ refreshStats } }; return ( - - - - - + + + + + + + ); }; diff --git a/ui-common/src/components/modals/TrafficStatsModal/TrafficStatsModal.tsx b/ui-common/src/components/modals/TrafficStatsModal/TrafficStatsModal.tsx index cd655b091..28dec2e91 100644 --- a/ui-common/src/components/modals/TrafficStatsModal/TrafficStatsModal.tsx +++ b/ui-common/src/components/modals/TrafficStatsModal/TrafficStatsModal.tsx @@ -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,53 +66,51 @@ export const TrafficStatsModal: React.FC = ({ isOpen, on }, 500); return ( - - - - -
- close onClose()} style={{ cursor: "pointer", userSelect: "none" }} /> -
-
-
Traffic Statistics
-
-
-
-
- -
-
- Breakdown By - -
-
- Protocol - -
+ + + +
+ close onClose()} style={{ cursor: "pointer", userSelect: "none" }} /> +
+
+
Traffic Statistics
+
+
+
+
+
- -
- - -
-
+ Breakdown By + +
+
+ Protocol +
- - - - +
+ +
+ + +
+
+
+
+
+
+
); } diff --git a/ui/public/index.html b/ui/public/index.html index 3db4177f8..49bc2b501 100644 --- a/ui/public/index.html +++ b/ui/public/index.html @@ -9,7 +9,6 @@ name="description" content="Web site created using create-react-app" /> -