bunch of react conversion

This commit is contained in:
Olivier Gagnon
2021-09-12 18:03:07 -04:00
parent b8b0948a1a
commit 5f8de7e426
50 changed files with 1975 additions and 1899 deletions
+2 -8
View File
@@ -22,7 +22,6 @@ export function CharacterInfo(props: IProps): React.ReactElement {
function rerender(): void {
setRerender((old) => !old);
}
const [divisionName, setDivisionName] = useState("Overview");
useEffect(() => {
const id = setInterval(rerender, 20);
@@ -230,13 +229,8 @@ export function CharacterInfo(props: IProps): React.ReactElement {
</span>
<br />
<br />
<div style={{ width: "60%", fontSize: "13px", marginLeft: "4%" }}>
{BitNodes[index].info.split("<br>").map((t, i) => (
<div key={i}>
<span style={{ whiteSpace: "pre-wrap", overflowWrap: "break-word" }}>{t}</span>
<br />
</div>
))}
<div style={{ width: "60%", fontSize: "13px", marginLeft: "2%" }}>
<span style={{ whiteSpace: "pre-wrap", overflowWrap: "break-word" }}>{BitNodes[index].info}</span>
</div>
</>
);