mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-04 06:37:49 +02:00
build gang in mui
This commit is contained in:
@@ -4,6 +4,7 @@ import Tooltip from "@mui/material/Tooltip";
|
||||
|
||||
type IProps = {
|
||||
value: string;
|
||||
color?: string;
|
||||
variant?:
|
||||
| "button"
|
||||
| "caption"
|
||||
@@ -39,7 +40,7 @@ export function CopyableText(props: IProps): React.ReactElement {
|
||||
|
||||
return (
|
||||
<Tooltip open={open} title={<Typography>Copied!</Typography>}>
|
||||
<Typography variant={props.variant} onClick={copy}>
|
||||
<Typography variant={props.variant} color={props.color} onClick={copy}>
|
||||
{props.value}
|
||||
</Typography>
|
||||
</Tooltip>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { AlertEvents } from "./AlertManager";
|
||||
|
||||
import React from "react";
|
||||
import { jsx } from "@emotion/react";
|
||||
|
||||
export function dialogBoxCreate(txt: string | JSX.Element): void {
|
||||
if (typeof txt !== "string") {
|
||||
|
||||
Reference in New Issue
Block a user