Skip to content

Commit 4c38fb1

Browse files
committed
CSS
1 parent 2f5c0ba commit 4c38fb1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/containers/home/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ const Home = props => (
1515
<p>Count: {props.count}</p>
1616

1717
<p>
18-
<button onClick={props.increment}>Increment</button>
18+
<button onClick={props.increment} disabled={props.isIncrementing}>Increment</button>
1919
<button onClick={props.incrementAsync} disabled={props.isIncrementing}>Increment Async</button>
2020
</p>
2121

2222
<p>
23-
<button onClick={props.decrement}>Decrementing</button>
23+
<button onClick={props.decrement} disabled={props.isDecrementing}>Decrementing</button>
2424
<button onClick={props.decrementAsync} disabled={props.isDecrementing}>Decrement Async</button>
2525
</p>
2626

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ body {
99
font-size: 1rem;
1010
line-height: 1.5;
1111
}
12+
13+
button:disabled {
14+
opacity: 0.5;
15+
}

0 commit comments

Comments
 (0)