Skip to content

Commit

Permalink
Use EuiCompressedSuperDatePicker
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Aug 19, 2024
1 parent fab0916 commit 531989e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions public/components/common/search/date_picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { EuiSuperDatePicker } from '@elastic/eui';
import { EuiCompressedSuperDatePicker } from '@elastic/eui';
import React from 'react';
import { uiSettingsService } from '../../../../common/utils';
import { IDatePickerProps } from './search';
Expand All @@ -14,7 +14,7 @@ export function DatePicker(props: IDatePickerProps) {
const handleTimeChange = (e: any) => handleTimePickerChange([e.start, e.end]);

return (
<EuiSuperDatePicker
<EuiCompressedSuperDatePicker
data-test-subj="pplSearchDatePicker"
start={startTime}
end={endTime}
Expand Down
4 changes: 2 additions & 2 deletions public/components/custom_panels/custom_panel_view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
EuiPageHeaderSection,
EuiPopover,
EuiSpacer,
EuiSuperDatePicker,
EuiCompressedSuperDatePicker,
EuiTitle,
OnTimeChangeProps,
ShortDate,
Expand Down Expand Up @@ -683,7 +683,7 @@ export const CustomPanelView = (props: CustomPanelViewProps) => {
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiSuperDatePicker
<EuiCompressedSuperDatePicker
dateFormat={uiSettingsService.get('dateFormat')}
start={startTime}
end={endTime}
Expand Down
4 changes: 2 additions & 2 deletions public/components/custom_panels/custom_panel_view_so.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
EuiPageHeaderSection,
EuiPopover,
EuiSpacer,
EuiSuperDatePicker,
EuiCompressedSuperDatePicker,
EuiTitle,
OnTimeChangeProps,
ShortDate,
Expand Down Expand Up @@ -634,7 +634,7 @@ export const CustomPanelViewSO = (props: CustomPanelViewProps) => {
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiSuperDatePicker
<EuiCompressedSuperDatePicker
dateFormat={uiSettingsService.get('dateFormat')}
start={panel.timeRange.from}
end={panel.timeRange.to}
Expand Down
5 changes: 2 additions & 3 deletions public/components/metrics/top_menu/top_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiCompressedSelect,
EuiSuperDatePicker,
EuiCompressedSuperDatePicker,
} from '@elastic/eui';
import React from 'react';
import { useDispatch, useSelector } from 'react-redux';
Expand Down Expand Up @@ -53,8 +53,7 @@ export const TopMenu = () => {
<EuiFlexItem grow={false}>
<EuiFlexGroup gutterSize="s">
<EuiFlexItem grow={false} className="metrics-search-bar-datepicker">
<EuiSuperDatePicker
compressed={true}
<EuiCompressedSuperDatePicker
dateFormat={uiSettingsService.get('dateFormat')}
start={dateSpanFilter.start}
end={dateSpanFilter.end}
Expand Down

0 comments on commit 531989e

Please sign in to comment.