Skip to content

Commit 65d2d76

Browse files
committed
MP-229 year picker updated
1 parent c7f8914 commit 65d2d76

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

src/libs/ui/lib/components/form/form-groups/form-input/input-date-picker/InputDatePicker.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
select {
4848
border: none;
4949
background-color: transparent;
50+
margin: auto;
5051

5152
option:hover {
5253
background-color: $turq-160;

src/libs/ui/lib/components/form/form-groups/form-input/input-date-picker/InputDatePicker.tsx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,13 @@ const InputDatePicker: FC<InputDatePickerProps> = (props: InputDatePickerProps)
6060
}: any): JSX.Element {
6161
return (
6262
<div className={styles.headerWrap}>
63-
<button onClick={decreaseMonth} disabled={prevMonthButtonDisabled} type='button'>
64-
<IconOutline.ArrowCircleLeftIcon />
65-
</button>
63+
{
64+
props.showMonthPicker !== false && (
65+
<button onClick={decreaseMonth} disabled={prevMonthButtonDisabled} type='button'>
66+
<IconOutline.ArrowCircleLeftIcon />
67+
</button>
68+
)
69+
}
6670

6771
{
6872
props.showMonthPicker !== false && (
@@ -90,9 +94,13 @@ const InputDatePicker: FC<InputDatePickerProps> = (props: InputDatePickerProps)
9094
))}
9195
</select>
9296

93-
<button onClick={increaseMonth} disabled={nextMonthButtonDisabled} type='button'>
94-
<IconOutline.ArrowCircleRightIcon />
95-
</button>
97+
{
98+
props.showMonthPicker !== false && (
99+
<button onClick={increaseMonth} disabled={nextMonthButtonDisabled} type='button'>
100+
<IconOutline.ArrowCircleRightIcon />
101+
</button>
102+
)
103+
}
96104
</div>
97105
)
98106
}

0 commit comments

Comments
 (0)