Convert sleeves to react, fix shock recovery bug

This commit is contained in:
Olivier Gagnon
2021-09-09 21:38:05 -04:00
parent b0fcdb8363
commit d5c9306395
12 changed files with 672 additions and 901 deletions
@@ -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 = {};