Merge pull request #38 from ecraig12345/day2-3

More day 1 updates
This commit is contained in:
Micah Godbolt
2019-02-28 07:19:13 -08:00
committed by GitHub
24 changed files with 82 additions and 66 deletions

View File

@@ -13,7 +13,7 @@ export const TodoFooter = (props: TodoFooterProps) => {
return (
<Stack horizontal horizontalAlign="space-between">
<Text>
{itemCount} item{itemCount > 1 ? 's' : ''} left
{itemCount} item{itemCount === 1 ? '' : 's'} left
</Text>
<DefaultButton onClick={() => props.clear()}>Clear Completed</DefaultButton>
</Stack>

View File

@@ -6,7 +6,7 @@ export const TodoFooter = (props: any) => {
return (
<footer>
<span>
{itemCount} item{itemCount > 1 ? 's' : ''} left
{itemCount} item{itemCount <= 1 ? '' : 's'} left
</span>
<button onClick={() => props.clear()} className="button">
Clear Completed