Bachelorthesis_Code/frontend/src/components/GeneratedPassword.js
cami 58bd327377
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Update some change password things..
2021-07-22 05:20:37 +02:00

22 lines
508 B
JavaScript

import React from "react";
import "../App.css";
export default function GeneratedPassword(props) {
const genPassword = "PASSWORT_MANUELL"
const handleOnCopyEvent = (e) => {
e.preventDefault();
return false;
};
return (
<>
<p onCopy={handleOnCopyEvent}>
Das Passwort für diese Situation lautet:{" "}
{console.log("component genpw, genpassword", props.genPassword)}
<span className="generated-password">{props.genPassword}</span>
</p>
</>
);
}