Updated the Encoder.jsx

This commit is contained in:
Mathias Wagner 2023-05-30 22:44:40 +02:00
parent 87cfba42ad
commit ce5987b70d
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -3,8 +3,9 @@ import {useSearchParams} from "react-router-dom";
import {Buffer} from "buffer";
import Button from "@/common/components/Button";
import {faCopy, faShare} from "@fortawesome/free-solid-svg-icons";
import InfoArea from "@/common/components/InfoArea/index.js";
import InfoArea from "@/common/components/InfoArea";
import "./styles.sass";
import TextArea from "@/pages/tools/base64/components/TextArea";
export const Encoder = () => {
const [searchParams] = useSearchParams();
@ -32,11 +33,11 @@ export const Encoder = () => {
<div className="base64-encoder">
<h2>Eingabe-Text</h2>
<textarea className="area" rows="10" value={inputString} onChange={(e) => setInputString(e.target.value)} />
<TextArea value={inputString} onChange={(e) => setInputString(e.target.value)} />
{outputString !== "" && <>
<h2>Ausgabe-Text</h2>
<textarea className="area" rows="10" value={outputString} readOnly />
<TextArea value={outputString} readOnly />
</>}
</div>
</>