Skip to content

Commit 5e86105

Browse files
committed
run formatting script
1 parent 373b52a commit 5e86105

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/components/SuperAdmin/MetricsTable.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ const MetricsTable = (props) => {
264264
{page.map((row, rowIndex) => {
265265
prepareRow(row);
266266
return (
267-
<tr className={rowStyles} {...row.getRowProps()} key={`row-${row.original.id}-${rowIndex}`}>
267+
<tr
268+
className={rowStyles}
269+
{...row.getRowProps()}
270+
key={`row-${row.original.id}-${rowIndex}`}
271+
>
268272
{row.cells.map((cell, cellIndex) => (
269273
<td
270274
key={`cell-${row.original.id}-${cell.column.id}-${cellIndex}`}

src/pages/Sent/Sent.jsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ const Sent = (props) => {
4747
id: "task_id",
4848
Header: "Task ID",
4949
accessor: "taskId",
50-
Cell: ({ value, row }) => value ? <Link to={`challenge/${row.original.challengeId}/task/${value}`}>{value}</Link> : null,
50+
Cell: ({ value, row }) =>
51+
value ? (
52+
<Link to={`challenge/${row.original.challengeId}/task/${value}`}>{value}</Link>
53+
) : null,
5154
Filter: ({ column: { filterValue, setFilter } }) => (
5255
<div className="mr-flex mr-items-center" onClick={(e) => e.stopPropagation()}>
5356
<SearchFilter
@@ -427,7 +430,11 @@ const Sent = (props) => {
427430
{filteredRows.map((row, rowIndex) => {
428431
prepareRow(row);
429432
return (
430-
<tr className={rowStyles} {...row.getRowProps()} key={`row-${row.original.id || row.id}-${rowIndex}`}>
433+
<tr
434+
className={rowStyles}
435+
{...row.getRowProps()}
436+
key={`row-${row.original.id || row.id}-${rowIndex}`}
437+
>
431438
{row.cells.map((cell, cellIndex) => (
432439
<td
433440
key={`cell-${row.original.id || row.id}-${cell.column.id}-${cellIndex}`}

0 commit comments

Comments
 (0)