File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/components/DatePicker Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
import styled from "styled-components" ;
2
- import { InputElement , InputWrapper } from "../Input/InputWrapper" ;
2
+ import { InputElement , InputStartContent , InputWrapper } from "../Input/InputWrapper" ;
3
3
import { ReactNode , useCallback , useId } from "react" ;
4
4
import { Icon } from "../Icon/Icon" ;
5
5
import { Container } from "../Container/Container" ;
@@ -53,8 +53,11 @@ export const DatePickerInput = ({
53
53
disabled = { disabled }
54
54
id = { id ?? defaultId }
55
55
>
56
- < Icon name = "calendar" />
56
+ < InputStartContent >
57
+ < Icon name = "calendar" />
58
+ </ InputStartContent >
57
59
< InputElement
60
+ $hasStartContent
58
61
data-testid = "datepicker-input"
59
62
placeholder = { placeholder }
60
63
readOnly
@@ -120,8 +123,11 @@ export const DateRangePickerInput = ({
120
123
disabled = { disabled }
121
124
id = { id ?? defaultId }
122
125
>
123
- < Icon name = "calendar" />
126
+ < InputStartContent >
127
+ < Icon name = "calendar" />
128
+ </ InputStartContent >
124
129
< InputElement
130
+ $hasStartContent
125
131
as = "div"
126
132
data-testid = "daterangepicker-input"
127
133
>
You can’t perform that action at this time.
0 commit comments