|
|
@@ -2,6 +2,7 @@ import {DatePicker} from 'antd';
|
|
|
import {FC} from 'react';
|
|
|
import type {Dayjs} from 'dayjs';
|
|
|
import type {RangeValue} from '@hooks';
|
|
|
+import Label from './Label';
|
|
|
|
|
|
type Props = {
|
|
|
label: string;
|
|
|
@@ -20,9 +21,7 @@ const LDFilterDate: FC<Props> = function({
|
|
|
}) {
|
|
|
return (
|
|
|
<div className="ld-filter-field">
|
|
|
- <label htmlFor={`filter_${name}`} className="ld-filter-field-label">
|
|
|
- {label}
|
|
|
- </label>
|
|
|
+ <Label name={name}>{label}</Label>
|
|
|
<div className="ld-filter-field-wrapper">
|
|
|
<DatePicker.RangePicker
|
|
|
showTime={enableTime ? {format: 'HH:mm'} : false}
|