From 9e3b15c7e39258178a60eb91a4ea4496efc56922 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Fri, 24 Aug 2018 15:24:46 -0500 Subject: [PATCH] minor reorder --- .../ClientApp/components/Home.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index a0c9ff6cf..0baf9bad8 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -75,15 +75,6 @@ export class Home extends React.Component, IHomeState> {

; } - //https://stackoverflow.com/a/11868398/2343739 - private static getContrast(hexcolor: string) { - const r = parseInt(hexcolor.substr(0, 2), 16); - const g = parseInt(hexcolor.substr(2, 2), 16); - const b = parseInt(hexcolor.substr(4, 2), 16); - const yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; - return (yiq >= 128) ? "black" : "white"; - } - private static renderFilterListsTable(state: IHomeState) { return , IHomeState> { }} className="-striped -highlight"/>; } + + //https://stackoverflow.com/a/11868398/2343739 + private static getContrast(hexcolor: string) { + const r = parseInt(hexcolor.substr(0, 2), 16); + const g = parseInt(hexcolor.substr(2, 2), 16); + const b = parseInt(hexcolor.substr(4, 2), 16); + const yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; + return (yiq >= 128) ? "black" : "white"; + } } interface IListDto {