= ({ suffix, isOpenSuffix = true, ...props }) => (
+ {suffix}} {...props} />
);
diff --git a/src/components/forms/ControlForm/ControlForm.tsx b/src/components/forms/ControlForm/ControlForm.tsx
index 410d9a058..beb2c8178 100644
--- a/src/components/forms/ControlForm/ControlForm.tsx
+++ b/src/components/forms/ControlForm/ControlForm.tsx
@@ -20,17 +20,17 @@ interface UserType {
}
export const ControlForm: React.FC = () => {
- const [visible, setVisible] = useState(false);
+ const [open, setOpen] = useState(false);
const [isFieldsChanged, setFieldsChanged] = useState(false);
const [isLoading, setLoading] = useState(false);
const { t } = useTranslation();
const showUserModal = () => {
- setVisible(true);
+ setOpen(true);
};
const hideUserModal = () => {
- setVisible(false);
+ setOpen(false);
};
const onFinish = (values = {}) => {
@@ -50,7 +50,7 @@ export const ControlForm: React.FC = () => {
const { controlForm } = forms;
const users = controlForm.getFieldValue('users') || [];
controlForm.setFieldsValue({ users: [...users, values] });
- setVisible(false);
+ setOpen(false);
}
}}
>
@@ -104,7 +104,7 @@ export const ControlForm: React.FC = () => {
}}
-
+
);
};
diff --git a/src/components/forms/StepForm/StepForm.styles.ts b/src/components/forms/StepForm/StepForm.styles.ts
index 728a60ac5..1f8180236 100644
--- a/src/components/forms/StepForm/StepForm.styles.ts
+++ b/src/components/forms/StepForm/StepForm.styles.ts
@@ -75,3 +75,8 @@ export const DetailsValue = styled.div`
font-size: ${FONT_SIZE.md};
font-weight: ${FONT_WEIGHT.semibold};
`;
+
+export const Row = styled.div`
+ display: flex;
+ gap: 0.5rem;
+`;
diff --git a/src/components/forms/StepForm/StepForm.tsx b/src/components/forms/StepForm/StepForm.tsx
index d1052009f..1328f56c6 100644
--- a/src/components/forms/StepForm/StepForm.tsx
+++ b/src/components/forms/StepForm/StepForm.tsx
@@ -125,13 +125,15 @@ export const StepForm: React.FC = () => {
setFields(uniqueData);
}}
>
-
- {steps.map((item) => (
-
- ))}
-
+
+
{formFieldsUi[current]}
-
+
+ {current > 0 && (
+ prev()}>
+ {t('forms.stepFormLabels.previous')}
+
+ )}
{current < steps.length - 1 && (
)}
- {current > 0 && (
- prev()}>
- {t('forms.stepFormLabels.previous')}
-
- )}
-
+
);
};
diff --git a/src/components/forms/StepForm/Steps/Step2.tsx b/src/components/forms/StepForm/Steps/Step2.tsx
index dc6b91d27..bf77ad084 100644
--- a/src/components/forms/StepForm/Steps/Step2.tsx
+++ b/src/components/forms/StepForm/Steps/Step2.tsx
@@ -6,6 +6,11 @@ import { DatePicker } from '@app/components/common/pickers/DatePicker';
import { Select, Option } from '@app/components/common/selects/Select/Select';
import * as S from '../StepForm.styles';
import React from 'react';
+import styled from 'styled-components';
+
+const Picker = styled(DatePicker)`
+ width: 100%;
+`;
export const Step2: React.FC = () => {
const { t } = useTranslation();
@@ -60,7 +65,7 @@ export const Step2: React.FC = () => {
label={t('forms.stepFormLabels.birthday')}
rules={[{ required: true, message: t('forms.stepFormLabels.birthdayError') }]}
>
-
+
{
{
const [query, setQuery] = useState('');
const [components] = useState(configComponents);
- const [isModalVisible, setModalVisible] = useState(false);
- const [isOverlayVisible, setOverlayVisible] = useState(false);
+ const [isModalOpen, setModalOpen] = useState(false);
+ const [isOverlayOpen, setOverlayOpen] = useState(false);
const sortedResults = query
? categoriesList.reduce((acc, current) => {
@@ -36,31 +36,28 @@ export const HeaderSearch: React.FC = () => {
: null;
useEffect(() => {
- setModalVisible(false);
- setOverlayVisible(false);
+ setModalOpen(false);
+ setOverlayOpen(false);
}, [pathname]);
return (
<>
{mobileOnly && (
<>
-