mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 13:57:05 +02:00
Convert sleeves to react, fix shock recovery bug
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
import * as React from "react";
|
||||
|
||||
export function EarningsTableElement(title: string, stats: any[][]): React.ReactElement {
|
||||
interface IProps {
|
||||
title: string;
|
||||
stats: any[][];
|
||||
}
|
||||
|
||||
export function EarningsTableElement(props: IProps): React.ReactElement {
|
||||
return (
|
||||
<>
|
||||
<pre>{title}</pre>
|
||||
<pre>{props.title}</pre>
|
||||
<table>
|
||||
<tbody>
|
||||
{stats.map((stat: any[], i: number) => (
|
||||
{props.stats.map((stat: any[], i: number) => (
|
||||
<tr key={i}>
|
||||
{stat.map((s: any, i: number) => {
|
||||
let style = {};
|
||||
|
||||
Reference in New Issue
Block a user