convert blade to mui

This commit is contained in:
Olivier Gagnon
2021-09-27 17:09:48 -04:00
parent 498a204c88
commit 86678b6290
50 changed files with 1921 additions and 1527 deletions
+7 -1
View File
@@ -3,7 +3,7 @@
* This is the component for displaying a single faction's UI, not the list of all
* accessible factions
*/
import React, { useState } from "react";
import React, { useState, useEffect } from "react";
import { AugmentationsPage } from "./AugmentationsPage";
import { DonateOption } from "./DonateOption";
@@ -71,6 +71,12 @@ export function FactionRoot(props: IProps): React.ReactElement {
function rerender(): void {
setRerender((old) => !old);
}
useEffect(() => {
const id = setInterval(rerender, 200);
return () => clearInterval(id);
}, []);
const faction = props.faction;
const player = use.Player();