fix(command:buy) don't wrap in typography

Warpping the output in typography inserts a newline before/after, this fine until timestamps are enabled and the components don't fall inline, and the typography newline is then visible.

Resolves danielyxie/bitburner#2108
This commit is contained in:
Dan 2021-12-22 13:27:06 +00:00
parent ea0be338e1
commit 64dea97e3c

@ -6,7 +6,6 @@ import { Terminal } from "../Terminal";
import { SpecialServers } from "../Server/data/SpecialServers";
import { Money } from "../ui/React/Money";
import { DarkWebItem } from "./DarkWebItem";
import Typography from "@mui/material/Typography";
//Posts a "help" message if connected to DarkWeb
export function checkIfConnectedToDarkweb(): void {
@ -31,9 +30,9 @@ export function listAllDarkwebItems(): void {
);
Terminal.printRaw(
<Typography>
<>
<span>{item.program}</span> - <span>{cost}</span> - <span>{item.description}</span>
</Typography>,
</>,
);
}
}