checkout: UI + styles enhacnements

This commit is contained in:
2025-12-30 23:50:42 +03:00
parent 3ed5c4d5d6
commit 5d523e2508
24 changed files with 355 additions and 122 deletions

View File

@@ -13,6 +13,7 @@ interface ProPhoneInput {
getValueCallback?: (value: string) => void;
value?: string;
onChange?: (value: string) => void;
hiddenLabel?: boolean;
}
const ProPhoneInput: FunctionComponent<ProPhoneInput> = ({
@@ -21,6 +22,7 @@ const ProPhoneInput: FunctionComponent<ProPhoneInput> = ({
getValueCallback,
value,
onChange,
hiddenLabel = true,
}) => {
const form = useFormInstance();
const { t } = useTranslation();
@@ -29,7 +31,7 @@ const ProPhoneInput: FunctionComponent<ProPhoneInput> = ({
return (
<Form.Item
name={propName}
label={label}
label={hiddenLabel ? undefined : label}
rules={[
{ required: true, message: t("validation.phoneRequired") },
{
@@ -60,7 +62,7 @@ const ProPhoneInput: FunctionComponent<ProPhoneInput> = ({
themeName={themeName}
placeholder={t("login.mobileNumber")}
propName={propName}
label={label}
label={hiddenLabel ? undefined : label}
/>
</Form.Item>
);