mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-08 22:37:37 +01:00
Better imports
This commit is contained in:
parent
58c4861c56
commit
e69e45c283
@ -1,23 +1,13 @@
|
|||||||
import React, { useState } from "react";
|
import { History, Reply, Save } from "@mui/icons-material";
|
||||||
import { Modal } from "../../ui/React/Modal";
|
import { Box, Button, Paper, TextField, Tooltip, Typography } from "@mui/material";
|
||||||
import { defaultMonacoTheme, IScriptEditorTheme } from "./themes";
|
|
||||||
|
|
||||||
import Typography from "@mui/material/Typography";
|
|
||||||
import Button from "@mui/material/Button";
|
|
||||||
import Box from "@mui/material/Box";
|
|
||||||
import Tooltip from "@mui/material/Tooltip";
|
|
||||||
import TextField from "@mui/material/TextField";
|
|
||||||
import Paper from "@mui/material/Paper";
|
|
||||||
import IconButton from "@mui/material/IconButton";
|
import IconButton from "@mui/material/IconButton";
|
||||||
import ReplyIcon from "@mui/icons-material/Reply";
|
|
||||||
import HistoryIcon from "@mui/icons-material/History";
|
|
||||||
import SaveIcon from "@mui/icons-material/Save";
|
|
||||||
|
|
||||||
import { Settings } from "../../Settings/Settings";
|
|
||||||
import { OptionSwitch } from "../../ui/React/OptionSwitch";
|
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
|
|
||||||
import { Color, ColorPicker } from "material-ui-color";
|
import { Color, ColorPicker } from "material-ui-color";
|
||||||
|
import React, { useState } from "react";
|
||||||
|
import { Settings } from "../../Settings/Settings";
|
||||||
|
import { Modal } from "../../ui/React/Modal";
|
||||||
|
import { OptionSwitch } from "../../ui/React/OptionSwitch";
|
||||||
|
import { defaultMonacoTheme, IScriptEditorTheme } from "./themes";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
@ -62,7 +52,7 @@ function ColorEditor({ label, themePath, onColorChange, color, defaultColor }: I
|
|||||||
endAdornment: (
|
endAdornment: (
|
||||||
<>
|
<>
|
||||||
<IconButton onClick={() => onColorChange(themePath, defaultColor)}>
|
<IconButton onClick={() => onColorChange(themePath, defaultColor)}>
|
||||||
<ReplyIcon color="primary" />
|
<Reply color="primary" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
@ -266,7 +256,7 @@ export function ThemeEditorModal(props: IProps): React.ReactElement {
|
|||||||
Settings.EditorTheme = { ...themeCopy };
|
Settings.EditorTheme = { ...themeCopy };
|
||||||
props.onClose();
|
props.onClose();
|
||||||
}}
|
}}
|
||||||
startIcon={<SaveIcon />}
|
startIcon={<Save />}
|
||||||
>
|
>
|
||||||
Save
|
Save
|
||||||
</Button>
|
</Button>
|
||||||
@ -275,7 +265,7 @@ export function ThemeEditorModal(props: IProps): React.ReactElement {
|
|||||||
setThemeCopy(defaultMonacoTheme);
|
setThemeCopy(defaultMonacoTheme);
|
||||||
rerender();
|
rerender();
|
||||||
}}
|
}}
|
||||||
startIcon={<HistoryIcon />}
|
startIcon={<History />}
|
||||||
>
|
>
|
||||||
Reset to default
|
Reset to default
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
Reference in New Issue
Block a user