From 677bc9b71a122525c5e1bed4e040767c3d0e4a10 Mon Sep 17 00:00:00 2001 From: Elizabeth Craig Date: Thu, 28 Feb 2019 01:13:11 -0800 Subject: [PATCH] Fix plural in footer with 0 items --- playground/src/components/TodoFooter.tsx | 2 +- step1-07/demo/src/components/TodoFooter.tsx | 2 +- step1-07/exercise/src/components/TodoFooter.tsx | 2 +- step1-07/final/src/components/TodoFooter.tsx | 2 +- step2-02/demo/src/components/TodoFooter.tsx | 2 +- step2-02/exercise/src/components/TodoFooter.tsx | 2 +- step2-03/demo/src/components/TodoFooter.tsx | 2 +- step2-03/demo/src/components/TodoHeader.tsx | 2 +- step2-03/exercise/src/components/TodoFooter.tsx | 2 +- step2-07/demo/src/components/TodoFooter.tsx | 2 +- step2-07/exercise/src/components/TodoFooter.tsx | 2 +- step2-08/demo/src/components/TodoFooter.tsx | 2 +- step2-08/exercise/src/components/TodoFooter.tsx | 2 +- step2-09/demo/src/components/TodoFooter.tsx | 2 +- step2-09/exercise/src/components/TodoFooter.tsx | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/playground/src/components/TodoFooter.tsx b/playground/src/components/TodoFooter.tsx index 889f05c..66f0c47 100644 --- a/playground/src/components/TodoFooter.tsx +++ b/playground/src/components/TodoFooter.tsx @@ -30,7 +30,7 @@ export const TodoFooter = connect( return ( - {itemCount} item{itemCount > 1 ? 's' : ''} left + {itemCount} item{itemCount === 1 ? '' : 's'} left props.clear()}>Clear Completed diff --git a/step1-07/demo/src/components/TodoFooter.tsx b/step1-07/demo/src/components/TodoFooter.tsx index 0d86f55..56072ed 100644 --- a/step1-07/demo/src/components/TodoFooter.tsx +++ b/step1-07/demo/src/components/TodoFooter.tsx @@ -6,7 +6,7 @@ export const TodoFooter = (props: any) => { return ( diff --git a/step1-07/exercise/src/components/TodoFooter.tsx b/step1-07/exercise/src/components/TodoFooter.tsx index fdda04a..76fd3cb 100644 --- a/step1-07/exercise/src/components/TodoFooter.tsx +++ b/step1-07/exercise/src/components/TodoFooter.tsx @@ -6,7 +6,7 @@ export const TodoFooter = props => { return ( diff --git a/step1-07/final/src/components/TodoFooter.tsx b/step1-07/final/src/components/TodoFooter.tsx index fdb75cc..21fef48 100644 --- a/step1-07/final/src/components/TodoFooter.tsx +++ b/step1-07/final/src/components/TodoFooter.tsx @@ -14,7 +14,7 @@ export const TodoFooter = (props: TodoFooterProps) => { return (