mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
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:
@@ -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>,
|
||||
</>,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user