mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 02:03:01 +02:00
CORPORATION: Update tooltip of storage space (#1237)
The tooltip of the storage space only shows sizes of materials/products. This is confusing for newbies. They use "Unit" (number of material/product units) when buying materials, but that tooltip only shows sizes without any description.
This commit is contained in:
@@ -8,16 +8,18 @@ interface StatsTableProps {
|
||||
rows: ReactNode[][];
|
||||
title?: string;
|
||||
wide?: boolean;
|
||||
paddingLeft?: string;
|
||||
}
|
||||
|
||||
const useStyles = makeStyles({
|
||||
firstCell: { textAlign: "left" },
|
||||
nonFirstCell: { textAlign: "right", paddingLeft: "0.5em" },
|
||||
});
|
||||
const useStyles = (paddingLeft: string) =>
|
||||
makeStyles({
|
||||
firstCell: { textAlign: "left" },
|
||||
nonFirstCell: { textAlign: "right", paddingLeft: paddingLeft },
|
||||
})();
|
||||
|
||||
export function StatsTable({ rows, title, wide }: StatsTableProps): ReactElement {
|
||||
export function StatsTable({ rows, title, wide, paddingLeft }: StatsTableProps): ReactElement {
|
||||
const T = wide ? MuiTable : Table;
|
||||
const classes = useStyles();
|
||||
const classes = useStyles(paddingLeft ?? "0.5em");
|
||||
return (
|
||||
<>
|
||||
{title && <Typography>{title}</Typography>}
|
||||
|
||||
Reference in New Issue
Block a user