Revert noList prop

This commit is contained in:
nickofolas 2022-04-17 15:26:43 -05:00
parent 4073050333
commit 7f2ab4f27a
2 changed files with 85 additions and 84 deletions

@ -65,7 +65,8 @@ export const CurrentOptionsPage = (props: IProps): React.ReactElement => {
const pages = {
[GameOptionsTab.SYSTEM]: (
<GameOptionsPage title="System" noList>
<GameOptionsPage title="System">
<>
<OptionsSlider
label=".script exec time (ms)"
value={execTime}
@ -75,8 +76,8 @@ export const CurrentOptionsPage = (props: IProps): React.ReactElement => {
max={100}
tooltip={
<>
The minimum number of milliseconds it takes to execute an operation in Netscript. Setting this too low can
result in poor performance if you have many scripts running.
The minimum number of milliseconds it takes to execute an operation in Netscript. Setting this too low
can result in poor performance if you have many scripts running.
</>
}
/>
@ -147,6 +148,7 @@ export const CurrentOptionsPage = (props: IProps): React.ReactElement => {
tooltip={<>The time (in seconds) between each autosave. Set to 0 to disable autosave.</>}
marks
/>
</>
</GameOptionsPage>
),
[GameOptionsTab.INTERFACE]: (

@ -5,14 +5,13 @@ import React from "react";
interface IProps {
children: React.ReactElement | (React.ReactElement | null)[];
title: string;
noList?: boolean;
}
export const GameOptionsPage = (props: IProps): React.ReactElement => {
return (
<Paper sx={{ height: "fit-content", p: 1 }}>
<Typography variant="h6">{props.title}</Typography>
{(props.children as any)?.length > 1 && !props.noList ? (
{(props.children as any)?.length > 1 ? (
<List disablePadding dense>
{(props.children as React.ReactElement[])
.filter((c) => c)