Bachelorthesis_Code/frontend/src/components/GeneratedPassword.jsx
cami 85e484bf0b
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
Renaming and autoformatting
- renamed the react files to jsx
- autoformat with vscode
2021-07-22 20:18:01 +02:00

20 lines
466 B
JavaScript

import React from "react";
import "../App.css";
export default function GeneratedPassword(props) {
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>
</>
);
}