Skip to content

Conversation

@SandraMadeleine
Copy link

Copy link

@EmmaHoltegaard EmmaHoltegaard left a comment

Choose a reason for hiding this comment

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

Good job guys! Everything works as it should and all the requirements are met. A+.

)
}
return (
<Outerwrapper coordinates={coordinates}>

Choose a reason for hiding this comment

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

Cool that you've used the coordinated to create this logic.


return (
<Direction>
<DirectionBtn1 className={isActive ? 'hidden-btn' : null} type="button" onClick={toggleDisplay}>Directions</DirectionBtn1>

Choose a reason for hiding this comment

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

Nice touch with the toggleDisplay. It adds something to the UX that you have to click to see the directions.

reducers: {

setUsername: (state, action) => {
state.username = `${new Date().getTime()}+${action.payload}`

Choose a reason for hiding this comment

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

Makes a big difference that you added the time-stamp.

return (
<Outerwrapper coordinates={coordinates}>
<Innerwrapper>
{coordinates === '' && <StartScreen />}
Copy link

Choose a reason for hiding this comment

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

These two lines could probably be shortened to {coordinates === '' ? : }, or something like that, I think :)


return (
<Direction>
<DirectionBtn1 className={isActive ? 'hidden-btn' : null} type="button" onClick={toggleDisplay}>Directions</DirectionBtn1>
Copy link

Choose a reason for hiding this comment

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

Kind of the reverse of my last comment :), I remember reading that you could use className={isActive && 'hidden-btn'} instead of using null!

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.

4 participants