Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Vertically center elements in TodoFooters
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed Mar 5, 2019
1 parent 122ce81 commit 5ce0dba
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion step2-03/demo/src/components/TodoFooter.tsx
Expand Up @@ -11,7 +11,7 @@ export const TodoFooter = (props: TodoFooterProps) => {
const itemCount = Object.keys(props.todos).filter(id => !props.todos[id].completed).length;

return (
<Stack horizontal horizontalAlign="space-between">
<Stack horizontal horizontalAlign="space-between" verticalAlign="center">
<Text>
{itemCount} item{itemCount === 1 ? '' : 's'} left
</Text>
Expand Down
2 changes: 1 addition & 1 deletion step2-03/exercise/src/components/TodoFooter.tsx
Expand Up @@ -14,7 +14,7 @@ export const TodoFooter = (props: TodoFooterProps) => {
// - try it with an object: styles={{ ... }}
// - try it with a function: styles={props => ({ ... })}
return (
<Stack horizontal horizontalAlign="space-between">
<Stack horizontal horizontalAlign="space-between" verticalAlign="center">
<Text>
{itemCount} item{itemCount === 1 ? '' : 's'} left
</Text>
Expand Down
2 changes: 1 addition & 1 deletion step2-04/demo/src/components/TodoFooter.tsx
Expand Up @@ -7,7 +7,7 @@ export const TodoFooter = () => {
const itemCount = Object.keys(context.todos).filter(id => !context.todos[id].completed).length;

return (
<Stack horizontal horizontalAlign="space-between">
<Stack horizontal horizontalAlign="space-between" verticalAlign="center">
<Text>
{itemCount} item{itemCount === 1 ? '' : 's'} left
</Text>
Expand Down
2 changes: 1 addition & 1 deletion step2-04/exercise/src/components/TodoFooter.tsx
Expand Up @@ -11,7 +11,7 @@ export const TodoFooter = () => {
const itemCount = Object.keys(todos).filter(id => !todos[id].completed).length;

return (
<Stack horizontal horizontalAlign="space-between">
<Stack horizontal horizontalAlign="space-between" verticalAlign="center">
<Text>
{itemCount} item{itemCount === 1 ? '' : 's'} left
</Text>
Expand Down
2 changes: 1 addition & 1 deletion step2-06/demo/src/components/TodoFooter.tsx
Expand Up @@ -15,7 +15,7 @@ const TodoFooter = (props: TodoFooterProps) => {
const itemCount = Object.keys(todos).filter(id => !todos[id].completed).length;

return (
<Stack horizontal horizontalAlign="space-between">
<Stack horizontal horizontalAlign="space-between" verticalAlign="center">
<Text>
{itemCount} item{itemCount === 1 ? '' : 's'} left
</Text>
Expand Down
2 changes: 1 addition & 1 deletion step2-06/exercise/src/components/TodoFooter.tsx
Expand Up @@ -17,7 +17,7 @@ const TodoFooter = (props: TodoFooterProps) => {
const itemCount = Object.keys(todos).filter(id => !todos[id].completed).length;

return (
<Stack horizontal horizontalAlign="space-between">
<Stack horizontal horizontalAlign="space-between" verticalAlign="center">
<Text>
{itemCount} item{itemCount === 1 ? '' : 's'} left
</Text>
Expand Down

0 comments on commit 5ce0dba

Please sign in to comment.