mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 20:25:45 +01:00
UI: Faction augmentation page rerenders automatically (#744)
This commit is contained in:
parent
79b677973b
commit
101fb21c58
@ -19,7 +19,7 @@ import { useRerender } from "../../ui/React/hooks";
|
|||||||
|
|
||||||
/** Root React Component for displaying a faction's "Purchase Augmentations" page */
|
/** Root React Component for displaying a faction's "Purchase Augmentations" page */
|
||||||
export function AugmentationsPage({ faction }: { faction: Faction }): React.ReactElement {
|
export function AugmentationsPage({ faction }: { faction: Faction }): React.ReactElement {
|
||||||
const rerender = useRerender();
|
const rerender = useRerender(400);
|
||||||
|
|
||||||
function getAugs(): AugmentationName[] {
|
function getAugs(): AugmentationName[] {
|
||||||
return getFactionAugmentationsFiltered(faction);
|
return getFactionAugmentationsFiltered(faction);
|
||||||
|
Loading…
Reference in New Issue
Block a user