ui: Убран email со шага 1, перенесён на последний шаг\n\n- Step1Phone: только телефон + SMS\n- Step3Payment: добавлено поле email
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useState } from 'react';
|
||||
import { Form, Input, Button, Select, message, Divider } from 'antd';
|
||||
import { QrcodeOutlined } from '@ant-design/icons';
|
||||
import { QrcodeOutlined, MailOutlined } from '@ant-design/icons';
|
||||
|
||||
const { Option } = Select;
|
||||
|
||||
@@ -72,6 +72,23 @@ export default function Step3Payment({
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Email собираем на последнем шаге */}
|
||||
<Form.Item
|
||||
label="Электронная почта"
|
||||
name="email"
|
||||
rules={[
|
||||
{ required: true, message: 'Введите email' },
|
||||
{ type: 'email', message: 'Неверный формат email' }
|
||||
]}
|
||||
>
|
||||
<Input
|
||||
prefix={<MailOutlined />}
|
||||
placeholder="example@mail.ru"
|
||||
size="large"
|
||||
type="email"
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
{/* Блок выплаты (показывается только после верификации) */}
|
||||
{isPhoneVerified && (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user