-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from TailUFPB/style/new-theme
Style/new theme
- Loading branch information
Showing
17 changed files
with
905 additions
and
885 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap"); | ||
.font-roboto { | ||
font-family: "Roboto Mono", monospace; | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,23 @@ | ||
import React from "react"; | ||
import CsvTable from "../csvTable/csvTable"; | ||
|
||
interface TableData { | ||
Coluna: string; | ||
Valor: any; | ||
} | ||
|
||
interface Props { | ||
data: { [key: string]: any }; | ||
classifierName: string; | ||
} | ||
|
||
export default function ResultTable({ data, classifierName }: Props) { | ||
return ( | ||
<div className="w-11/12 overflow-hidden rounded-3xl border-2 border-grey"> | ||
<table className="w-full"> | ||
<thead> | ||
<tr className="rounded-3xl bg-main-darker"> | ||
<th>{"Index"}</th> | ||
<th className={`border-grey border-l-2`}>{"Input"}</th> | ||
const tableData: TableData[] = Object.entries(data).map(([key, value]) => ({ | ||
Coluna: key, | ||
Valor: value, | ||
})); | ||
|
||
const convertedTableData: any[][] = tableData.slice(0, 4).map((item) => [item.Coluna, item.Valor]); | ||
|
||
<th className={`border-grey border-l-2`}>{"Output"}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{Object.keys(data) | ||
.slice(0, 10) | ||
.map((row: any, index: number) => { | ||
return ( | ||
<tr | ||
key={row} | ||
className={`${ | ||
index % 2 ? `bg-main-bold` : `bg-main-medium` | ||
} border-t-2`} | ||
> | ||
<td className={`px-5 py-1 border-grey`}>{index}</td> | ||
<td className={`px-5 py-1 border-grey border-l-2`}>{row}</td> | ||
<td className={`px-5 py-1 border-grey border-l-2`}> | ||
{data[row]} | ||
</td> | ||
</tr> | ||
); | ||
})} | ||
</tbody> | ||
</table> | ||
</div> | ||
); | ||
return <CsvTable data={convertedTableData} head={["Input", "Output"]} />; | ||
} |
Oops, something went wrong.