From 707abe42a67f0a843d5973c60eb0b96477ce4a8b Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 15 Sep 2018 13:01:49 -0500 Subject: [PATCH] minor ListsTable reformatting --- .../home/components/listsTable/ListsTable.tsx | 46 ++++++++++--------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/ListsTable.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/ListsTable.tsx index bba51e4ce..47eaee293 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/ListsTable.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/ListsTable.tsx @@ -70,15 +70,16 @@ export const ListsTable = (props: IProps) => { sortable: false, Cell: (c: any) =>
- {c.value.map((e: any, i: any) => - {e.name} - )} + {c.value.map((e: any, i: any) => + + {e.name} + )}
, width: 200, headerClassName: "d-none d-md-block", @@ -98,17 +99,19 @@ export const ListsTable = (props: IProps) => { style={{ width: "100%" }} value={filter ? filter.value : "any"}> - {props.languages.map((l: any, i) => ) - } + {props.languages.map((l: any, i) => + )} , sortable: false, - Cell: (c: any) =>
- {c.value.map((e: any, i: any) => - {e.iso6391} - )} -
, + Cell: (c: any) => +
+ {c.value.map((e: any, i: any) => + + {e.iso6391} + )} +
, style: { whiteSpace: "inherit" }, width: 100, headerClassName: "d-none d-md-block", @@ -123,9 +126,10 @@ export const ListsTable = (props: IProps) => { filterMethod: (f: any, r: any) => r[f.id].includes(f.value), sortMethod: (a: any, b: any) => moment(a).isValid() ? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1) : -1, - Cell: (c: any) =>
- {moment(c.value).isValid() ? moment(c.value).format("l") : "N/A"} -
, + Cell: (c: any) => +
+ {moment(c.value).isValid() ? moment(c.value).format("l") : "N/A"} +
, style: { whiteSpace: "inherit" }, width: 100, headerClassName: "d-none d-md-block",