Compare commits

..

2 commits

Author SHA1 Message Date
fb5675eebd changed some unused things 2021-07-12 01:06:53 +02:00
d1d213ac9d Added copy paste things :-) 2021-07-12 01:06:23 +02:00
4 changed files with 3 additions and 5 deletions

View file

@ -10,6 +10,8 @@ function InputField(props) {
onChange={props.onChange}
type={props.InputType}
placeholder={props.InputPlaceHolder}
onCopy={props.onCopy}
onPaste={props.onPaste}
/>
</label>
);

View file

@ -13,7 +13,6 @@ export default function Login() {
const [username, setUsername] = useState("");
const [password, setPassword] = useState("");
const [message, setMessage] = useState("");
const [errorMessage, setErrorMessage] = useState("");
const [isStatusOk, setIsStatusOk] = useState("");
@ -40,7 +39,6 @@ export default function Login() {
});
} else if (response.status === 200) {
response.json().then((resp) => {
setMessage(resp.message);
fetch("/api/login", {
method: "post",
body: JSON.stringify(opts),

View file

@ -24,7 +24,6 @@ export default function Umfrage() {
const [skillsErrorMessage, setSkillsErrorMessage] = useState("");
const [backendErrorMessage, setBackendErrorMessage] = useState("");
const [backendSuccessMessage, setBackendSuccessMessage] = useState("");
const [isSurveyValidBackend, setIsSurveyValidBackend] = useState("");
/* boolean if the values are ok */
@ -85,7 +84,6 @@ export default function Umfrage() {
}).then((response) => {
if (response.status === 200) {
response.json().then((r) => {
setBackendSuccessMessage(r.message);
setIsSurveyValidBackend(true);
});
} else {