Skip to content

Commit

Permalink
component refactor wip
Browse files Browse the repository at this point in the history
ref #467
  • Loading branch information
collinbarrett committed Sep 11, 2018
1 parent 2006bed commit 7e2f32f
Show file tree
Hide file tree
Showing 21 changed files with 512 additions and 387 deletions.
6 changes: 3 additions & 3 deletions src/FilterLists.Web/ClientApp/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RouteComponentProps } from "react-router";
import "isomorphic-fetch";
import ReactTable from "react-table"
import "react-table/react-table.css"
import ListDetails from "./ListDetails";
import ListDetailsExpander from "./listDetailsExpander/DetailsExpander";
import * as moment from "moment";

interface IHomeState {
Expand Down Expand Up @@ -166,7 +166,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
Cell: (cell: any) => <div className="fl-tag-container">{cell.value.map(
(e: any) => <span className="badge" style={{
backgroundColor: `#${e.colorHex}`,
color: ListDetails.getContrast(`${e.colorHex}`)
color: ListDetailsExpander.getContrast(`${e.colorHex}`)
}} title={e.description}>{e.name}</span>)}</div>,
width: 200,
headerClassName: "d-none d-md-block",
Expand Down Expand Up @@ -247,7 +247,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
]}
SubComponent={(row: any) => {
return (
<ListDetails listId={row.original.id}/>
<ListDetailsExpander listId={row.original.id}/>
);
}}
className="-striped -highlight"/>;
Expand Down
368 changes: 0 additions & 368 deletions src/FilterLists.Web/ClientApp/components/ListDetails.tsx

This file was deleted.

Loading

0 comments on commit 7e2f32f

Please sign in to comment.