|
|
@@ -11,19 +11,18 @@ interface Props { |
|
|
|
const Input: React.FC<Props> = (props) => { |
|
|
|
return ( |
|
|
|
<div className={styles.inputContainer}> |
|
|
|
{props.text && |
|
|
|
<IonLabel>{props.text}</IonLabel> |
|
|
|
} |
|
|
|
|
|
|
|
<IonItem lines='none'> |
|
|
|
<div className={styles.icon}> |
|
|
|
<div className={styles.inputHolder}> |
|
|
|
<IonItem lines='none'> |
|
|
|
{props.icon && |
|
|
|
<IonIcon src={props.icon}></IonIcon> |
|
|
|
} |
|
|
|
</div> |
|
|
|
<IonInput type={props.type ? props.type : "text"} |
|
|
|
placeholder={props.placeholder ? props.placeholder : ""}></IonInput> |
|
|
|
</IonItem> |
|
|
|
{props.text && |
|
|
|
<IonLabel>{props.text}</IonLabel> |
|
|
|
} |
|
|
|
<IonInput type={props.type ? props.type : "text"} |
|
|
|
placeholder={props.placeholder ? props.placeholder : ""}></IonInput> |
|
|
|
</IonItem> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
) |
|
|
|