|
|
|
@ -103,7 +103,6 @@ export const FormUser: FC<IProps> = ({
@@ -103,7 +103,6 @@ export const FormUser: FC<IProps> = ({
|
|
|
|
|
validateFullName(text); |
|
|
|
|
}} |
|
|
|
|
value={value} |
|
|
|
|
enableCopy={true} |
|
|
|
|
/> |
|
|
|
|
); |
|
|
|
|
}} |
|
|
|
@ -133,7 +132,6 @@ export const FormUser: FC<IProps> = ({
@@ -133,7 +132,6 @@ export const FormUser: FC<IProps> = ({
|
|
|
|
|
validateEmail(text); |
|
|
|
|
}} |
|
|
|
|
value={value} |
|
|
|
|
enableCopy={true} |
|
|
|
|
/> |
|
|
|
|
); |
|
|
|
|
}} |
|
|
|
@ -186,7 +184,6 @@ export const FormUser: FC<IProps> = ({
@@ -186,7 +184,6 @@ export const FormUser: FC<IProps> = ({
|
|
|
|
|
value={value} |
|
|
|
|
placeholder={"+38 (0xx) xxx xx xx"} |
|
|
|
|
mask="+380 (999) 999 99 99" |
|
|
|
|
enableCopy={true} |
|
|
|
|
onChange={(text) => { |
|
|
|
|
setError({ |
|
|
|
|
...errors, |
|
|
|
@ -244,7 +241,6 @@ export const FormUser: FC<IProps> = ({
@@ -244,7 +241,6 @@ export const FormUser: FC<IProps> = ({
|
|
|
|
|
value={value} |
|
|
|
|
placeholder={"+38 (0xx) xxx xx xx"} |
|
|
|
|
mask="+380 (999) 999 99 99" |
|
|
|
|
enableCopy={true} |
|
|
|
|
onChange={(text) => { |
|
|
|
|
setError({ ...errors, personalPhoneNumber: "" }); |
|
|
|
|
onChange(text.replace(/[^+\d]/g, "")); |
|
|
|
@ -256,21 +252,6 @@ export const FormUser: FC<IProps> = ({
@@ -256,21 +252,6 @@ export const FormUser: FC<IProps> = ({
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
{/* {profile.id != authProfileId && ( |
|
|
|
|
<Controller |
|
|
|
|
name="factories" |
|
|
|
|
control={control} |
|
|
|
|
render={({ field }) => ( |
|
|
|
|
<TreeSelectField |
|
|
|
|
label={"Підприємство"} |
|
|
|
|
placeholder={"Підприємство"} |
|
|
|
|
multiple |
|
|
|
|
tree={genTree(_.cloneDeep(factory))} |
|
|
|
|
register={field} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
/> |
|
|
|
|
)} */} |
|
|
|
|
<div |
|
|
|
|
className="row row-profile-user" |
|
|
|
|
// style={{ width: "100%", margin: 0, marginTop: 20 }}
|
|
|
|
@ -288,7 +269,6 @@ export const FormUser: FC<IProps> = ({
@@ -288,7 +269,6 @@ export const FormUser: FC<IProps> = ({
|
|
|
|
|
onChange={onChange} |
|
|
|
|
value={value} |
|
|
|
|
error={fieldState?.error?.message} |
|
|
|
|
enableCopy={true} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
/> |
|
|
|
@ -316,7 +296,6 @@ export const FormUser: FC<IProps> = ({
@@ -316,7 +296,6 @@ export const FormUser: FC<IProps> = ({
|
|
|
|
|
validateLogin(text); |
|
|
|
|
}} |
|
|
|
|
value={value} |
|
|
|
|
enableCopy={true} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
/> |
|
|
|
|