From 371354fd5a88910edb7e5771bd3894410805a5e5 Mon Sep 17 00:00:00 2001 From: Dinys Date: Fri, 6 Nov 2020 20:08:40 +1100 Subject: [PATCH 1/2] Add help coins balance for a user, add help coins when task completed --- react-app/src/App.js | 2 +- react-app/src/components/CardAvatar.js | 4 ++-- react-app/src/components/task-grid/TaskGrid.js | 16 +++++++++++++++- react-app/src/domain/User.js | 5 +++-- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/react-app/src/App.js b/react-app/src/App.js index 892836b..49c8c9d 100644 --- a/react-app/src/App.js +++ b/react-app/src/App.js @@ -18,7 +18,7 @@ function App() { return ( - + {userLoggedIn ? ( diff --git a/react-app/src/components/CardAvatar.js b/react-app/src/components/CardAvatar.js index e98856a..297b869 100644 --- a/react-app/src/components/CardAvatar.js +++ b/react-app/src/components/CardAvatar.js @@ -2,14 +2,14 @@ import React from 'react' import SignOutIcon from '../assets/sign-out.svg' function CardAvatar({ user, onSignOut }) { - const {name, image} = user + const {name, image, coins} = user return (
{`${name}
Hello, {name}!
- +