From fa2d5ba1afe7bd6abcb6f8dbd5f6252e0d7e87b1 Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Sun, 16 Sep 2018 18:10:02 -0500 Subject: [PATCH] organizing react proj --- .../detailsExpander/LinkButtonGroup.tsx | 20 +++++++++---------- .../detailsExpander/infoCard/InfoCard.tsx | 2 +- .../detailsExpander/infoCard/Languages.tsx | 4 ++-- .../detailsExpander/infoCard/Tag.tsx | 10 ++++++---- .../detailsExpander/infoCard/Tags.tsx | 2 +- .../MaintainerAdditionalLists.tsx | 2 +- .../MaintainersInfoCard.tsx | 3 ++- .../linkButtons/SubscribeButtonGroup.tsx | 3 ++- .../linkButtons/ViewButtonGroup.tsx | 3 ++- 9 files changed, 27 insertions(+), 22 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/LinkButtonGroup.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/LinkButtonGroup.tsx index 4a4fb535a..03debc3e5 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/LinkButtonGroup.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/LinkButtonGroup.tsx @@ -30,15 +30,15 @@ interface IProps { export const LinkButtonGroup = (props: IProps) => { const viewUrlMirrors = new Array(props.viewUrlMirror1, props.viewUrlMirror2).filter(u => u); return
- - - - - - - - - - + + + + + + + + + +
; }; \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/InfoCard.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/InfoCard.tsx index 06a399d1e..fd18f2b33 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/InfoCard.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/InfoCard.tsx @@ -31,7 +31,7 @@ export const InfoCard = (props: IProps) => {
{props.syntax.supportedSoftware.map( (s: ISyntaxSupportedSoftwareDto, i: number) => - + )}
diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Languages.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Languages.tsx index 3a36a71dc..0f95f3ec8 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Languages.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Languages.tsx @@ -10,11 +10,11 @@ export const Languages = (props: IProps) => { ?
  • Languages:

  • :
  • -

    Language: {props.languages.map((language: string) => language)}

    +

    Language: {props.languages[0]}

  • : null; }; \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Tag.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Tag.tsx index d13aecd6d..7e94a4fa6 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Tag.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/Tag.tsx @@ -3,10 +3,12 @@ import { IListTagDto } from "../IFilterListDetailsDto"; import { getContrast } from "../../../../../utils"; export const Tag = (props: IListTagDto) => { - const style = { - backgroundColor: props.colorHex ? `#${props.colorHex}` : undefined, - color: props.colorHex ? getContrast(`${props.colorHex}`) : undefined - }; + const style = props.colorHex + ? { + backgroundColor: `#${props.colorHex}`, + color: getContrast(`${props.colorHex}`) + } + : undefined; return props.name ? { return props.tags.length > 0 ?
    - {props.tags.map((t: IListTagDto, i) => )} + {props.tags.map((t: IListTagDto, i: number) => )}
    : null; }; \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainerAdditionalLists.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainerAdditionalLists.tsx index 2774b6111..d8e3b743e 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainerAdditionalLists.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainerAdditionalLists.tsx @@ -13,7 +13,7 @@ export const MaintainerAdditionalLists = (props: IProps) => {

    More by {props.name}:

    diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainersInfoCard.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainersInfoCard.tsx index 999c1cf6a..c8e69d51c 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainersInfoCard.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/maintainersInfoCard/MaintainersInfoCard.tsx @@ -9,7 +9,8 @@ interface IProps { export const MaintainersInfoCard = (props: IProps) => { return props.maintainers.length > 0 ?
    - {props.maintainers.map((m: IListMaintainerDto, i) => )} + {props.maintainers.map( + (m: IListMaintainerDto, i: number) => )}
    : null; }; \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/SubscribeButtonGroup.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/SubscribeButtonGroup.tsx index 54f72762c..15edd9c0a 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/SubscribeButtonGroup.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/SubscribeButtonGroup.tsx @@ -35,7 +35,8 @@ const SubscribeButtonGroupDropdown = (props: ISubscribeButtonGroupDropdownProps)
    {props.urlMirrors.map( - (m, i) => )} + (m: string, i: number) => + )}
    ; }; diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/ViewButtonGroup.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/ViewButtonGroup.tsx index 231014e91..6226098bf 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/ViewButtonGroup.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/linkButtons/ViewButtonGroup.tsx @@ -35,7 +35,8 @@ const ViewButtonGroupDropdown = (props: IViewButtonGroupDropdownProps) => {
    {props.urlMirrors.map( - (m, i) => )} + (m: string, i: number) => + )}
    ; };