mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 14:27:03 +02:00
Everything except Gang is Muified
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import React from "react";
|
||||
import React, { useState, useEffect } from "react";
|
||||
|
||||
export function BlinkingCursor(): React.ReactElement {
|
||||
return (
|
||||
<span style={{ fontSize: "1em" }} className={"blinking-cursor"}>
|
||||
|
|
||||
</span>
|
||||
);
|
||||
const [on, setOn] = useState(true);
|
||||
useEffect(() => {
|
||||
const i = setInterval(() => setOn((old) => !old), 1000);
|
||||
return () => clearInterval(i);
|
||||
});
|
||||
return <>{on ? "|" : ""}</>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user