Skip to content

Commit

Permalink
X2-7052: X2 account does not show start time in a listing schedule th…
Browse files Browse the repository at this point in the history
…e way it does in V1 (xola#267)

Added custom placeholder for select date
  • Loading branch information
khomyakov authored Sep 22, 2023
1 parent 7f218ba commit 33f31e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/DatePicker/DatePickerPopover.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const DatePickerPopover = ({
value,
variant = "single",
dateFormat = "ddd, LL",
placeholder = "Select Date",
onChange,
children,
classNames = {},
Expand Down Expand Up @@ -66,6 +67,7 @@ export const DatePickerPopover = ({
readOnly
size="medium"
value={value ? formatDate(value, dateFormat) : ""}
placeholder={placeholder}
className={classNames?.input}
onClick={toggleVisibility}
/>
Expand Down Expand Up @@ -103,7 +105,7 @@ const DefaultInput = forwardRef(({ className, ...rest }, reference) => {
<CalendarIcon className="z-10 inline-block" />
</div>

<Input className={clsx("cursor-pointer px-8", className)} placeholder="Select Date" {...rest} />
<Input className={clsx("cursor-pointer px-8", className)} {...rest} />

<div className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">
<DownArrowIcon className="inline-block" />
Expand Down

0 comments on commit 33f31e1

Please sign in to comment.