Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions packages/ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
import type { Web3SignerStatus } from "@stakingbrain/brain";

function App(): JSX.Element {
const [mode, setMode] = React.useState<"dark" | "light">("light");
const [mode, setMode] = React.useState<"dark" | "light">(

Check failure on line 14 in packages/ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / build

Delete `·······································································································`
() => (localStorage.getItem("ui-mode") as "dark" | "light") || "light"

Check failure on line 15 in packages/ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / build

Delete `······`
);

Check failure on line 16 in packages/ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / build

Delete `······`
const [userMode, setUserMode] = React.useState<"basic" | "advanced">("basic");

const [signerStatus, setSignerStatus] = React.useState<Web3SignerStatus>("LOADING");
Expand All @@ -20,7 +22,11 @@
useEffect(() => {
getStakerConfig();
}, []);


Check failure on line 25 in packages/ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / build

Delete `··`
useEffect(() => {

Check failure on line 26 in packages/ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / build

Delete `···············································································································································`
localStorage.setItem("ui-mode", mode);
}, [mode]);

Check failure on line 29 in packages/ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / build

Delete `··`
useEffect(() => {
signerGetStatus();
const interval = setInterval(() => {
Expand Down
Loading