Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/help coins balance #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

DinMon
Copy link
Owner

@DinMon DinMon commented Nov 20, 2020

Add feature to allow children to see the balance help coins. At the moment the help coins balance can only be read from Firestore. The value needs to be manually changed from Firestore.

@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep in mind, that user is potentially often encountered prop in your app, so it may make sense to move to some react context.

Otherwise, you may find yourself dealing with props drilling - when you need to pass some props way down the React tree just to pass them to some low level component.

@VitalyKrenel
Copy link
Collaborator

How do you feel about adding Netlify to your project? This way the deployed version of the app will be available for each branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants