Skip to content

Labyrinth project by Emilia, Nina & Sandra week 12#196

Open
SandraMadeleine wants to merge 13 commits intoTechnigo:masterfrom
SandraMadeleine:master
Open

Labyrinth project by Emilia, Nina & Sandra week 12#196
SandraMadeleine wants to merge 13 commits intoTechnigo:masterfrom
SandraMadeleine:master

Conversation

@SandraMadeleine
Copy link
Copy Markdown

Copy link
Copy Markdown

@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}>
Copy link
Copy Markdown

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>
Copy link
Copy Markdown

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}`
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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