mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
Remove old sleeve owned augs grid
This commit is contained in:
parent
fd6c5fa1dc
commit
cb34afbe5b
@ -1,6 +1,5 @@
|
|||||||
import { Box, Container, Paper, Tooltip, Typography } from "@mui/material";
|
import { Container, Typography } from "@mui/material";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { Augmentations } from "../../../Augmentation/Augmentations";
|
|
||||||
import { PurchaseableAugmentations } from "../../../Augmentation/ui/PurchaseableAugmentations";
|
import { PurchaseableAugmentations } from "../../../Augmentation/ui/PurchaseableAugmentations";
|
||||||
import { use } from "../../../ui/Context";
|
import { use } from "../../../ui/Context";
|
||||||
import { Modal } from "../../../ui/React/Modal";
|
import { Modal } from "../../../ui/React/Modal";
|
||||||
@ -58,34 +57,6 @@ export function SleeveAugmentationsModal(props: IProps): React.ReactElement {
|
|||||||
skipPreReqs
|
skipPreReqs
|
||||||
skipExclusiveIndicator
|
skipExclusiveIndicator
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{ownedAugNames.length > 0 && (
|
|
||||||
<>
|
|
||||||
<Typography>Owned Augmentations:</Typography>
|
|
||||||
<Box display="grid" sx={{ gridTemplateColumns: "repeat(5, 1fr)", my: 1 }}>
|
|
||||||
{ownedAugNames.map((augName) => {
|
|
||||||
const aug = Augmentations[augName];
|
|
||||||
const info = typeof aug.info === "string" ? <span>{aug.info}</span> : aug.info;
|
|
||||||
const tooltip = (
|
|
||||||
<>
|
|
||||||
{info}
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
{aug.stats}
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Tooltip key={augName} title={<Typography>{tooltip}</Typography>}>
|
|
||||||
<Paper sx={{ p: 1 }}>
|
|
||||||
<Typography>{augName}</Typography>
|
|
||||||
</Paper>
|
|
||||||
</Tooltip>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</Box>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</Container>
|
</Container>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user