From cf7acc1718521a5bb3ecca0630967e1fa1627206 Mon Sep 17 00:00:00 2001 From: alexlee-dev Date: Fri, 23 Aug 2019 17:30:46 -0700 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20Add=20ItemTimer=20heading.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ItemTimer.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/ItemTimer.js b/src/components/ItemTimer.js index 5c5e1c9..56cb75a 100644 --- a/src/components/ItemTimer.js +++ b/src/components/ItemTimer.js @@ -7,6 +7,7 @@ import { refreshItems } from '../redux/actions/world' import { createDuration } from '../util' +import { Box, Heading } from 'grommet' const ItemTimer = ({ handleTimerStarted, handleTimerStopped, world }) => { const { isTimerRunning } = world @@ -35,7 +36,12 @@ const ItemTimer = ({ handleTimerStarted, handleTimerStopped, world }) => { useEffect(startTimer, [isTimerRunning]) - return {timeLeft} + return ( + + Item Timer + {timeLeft} + + ) } ItemTimer.propTypes = { From 5e37e33a6e27f60e90a52c9106c4a924eff54abe Mon Sep 17 00:00:00 2001 From: alexlee-dev Date: Fri, 23 Aug 2019 17:31:02 -0700 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=85=20Update=20snapshot.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__snapshots__/ItemTimer.test.js.snap | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/__tests__/components/__snapshots__/ItemTimer.test.js.snap b/src/__tests__/components/__snapshots__/ItemTimer.test.js.snap index 776afe6..1e525b5 100644 --- a/src/__tests__/components/__snapshots__/ItemTimer.test.js.snap +++ b/src/__tests__/components/__snapshots__/ItemTimer.test.js.snap @@ -2,8 +2,17 @@ exports[` Should render the component. 1`] = ` - - 0 minutes 0 seconds - +
+

+ Item Timer +

+ + 0 minutes 0 seconds + +
`;