|
|
@ -24,12 +24,12 @@ export default function Birthdate({ defaultValue, name, ...props }) { |
|
|
|
}; |
|
|
|
}; |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="birthdate d-flex justify-content-between align-items-center"> |
|
|
|
<div className="birthdate d-flex justify-content-between align-items-center"> |
|
|
|
<label>تاریخ تولد</label> |
|
|
|
<label>{window.t("تاریخ تولد")} </label> |
|
|
|
<div className="mobile-birthdate__date d-flex align-items-center"> |
|
|
|
<div className="mobile-birthdate__date d-flex align-items-center"> |
|
|
|
<Input |
|
|
|
<Input |
|
|
|
variant="standard" |
|
|
|
variant="standard" |
|
|
|
name="day" |
|
|
|
name="day" |
|
|
|
placeholder="روز" |
|
|
|
placeholder={window.t("روز")} |
|
|
|
maxLength={2} |
|
|
|
maxLength={2} |
|
|
|
onInput={onInput.dayHandler} |
|
|
|
onInput={onInput.dayHandler} |
|
|
|
onChange={onChange} |
|
|
|
onChange={onChange} |
|
|
@ -39,7 +39,7 @@ export default function Birthdate({ defaultValue, name, ...props }) { |
|
|
|
<Input |
|
|
|
<Input |
|
|
|
variant="standard" |
|
|
|
variant="standard" |
|
|
|
name="month" |
|
|
|
name="month" |
|
|
|
placeholder="ماه" |
|
|
|
placeholder={window.t("ماه")} |
|
|
|
maxLength={2} |
|
|
|
maxLength={2} |
|
|
|
onInput={onInput.monthHandler} |
|
|
|
onInput={onInput.monthHandler} |
|
|
|
onChange={onChange} |
|
|
|
onChange={onChange} |
|
|
@ -49,7 +49,7 @@ export default function Birthdate({ defaultValue, name, ...props }) { |
|
|
|
<Input |
|
|
|
<Input |
|
|
|
variant="standard" |
|
|
|
variant="standard" |
|
|
|
name="year" |
|
|
|
name="year" |
|
|
|
placeholder="سال" |
|
|
|
placeholder={window.t("سال")} |
|
|
|
maxLength={4} |
|
|
|
maxLength={4} |
|
|
|
onInput={onInput.yearHandler} |
|
|
|
onInput={onInput.yearHandler} |
|
|
|
onChange={onChange} |
|
|
|
onChange={onChange} |
|
|
|