add signinpage

This commit is contained in:
Ruidy Nemausat 2020-04-23 23:27:13 +02:00
parent 93cffcb826
commit 4c2ca94013

View file

@ -0,0 +1,22 @@
import React from "react";
import { Label, Input } from "reactstrap";
const useStyles = () => ({
inputField: {
paddingBottom: "1rem",
},
});
const InputField = ({ id, label, set, type = "text" }) => {
const handleChange = (e) => set(e.target.value);
const styles = useStyles();
return (
<div style={styles.inputField}>
<Label for={id}>{label}</Label>
<Input type={type} id={id} onChange={handleChange} />
</div>
);
};
export default InputField;