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

Project-Labyrinth #12

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

Project-Labyrinth #12

wants to merge 30 commits into from

Conversation

trista1987
Copy link

@trista1987 trista1987 commented Apr 21, 2024

Netlify link

https://fun-maze.netlify.app/

Collaborators

[ohitsnathalie, trista1987]

Copy link

@HIPPIEKICK HIPPIEKICK 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 with this project! You implemented Zustand in a good way 🚀

Comment on lines +11 to +20
<>
{/* <BrowserRouter> */}
<div>
{!username && <Username />}
{username && <StartGame />}
</div>

{/* <Routes>{routes}</Routes>
</BrowserRouter> */}
</>

Choose a reason for hiding this comment

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

Remove unused code and the fragment and just wrap everything in a div for cleaner code

Comment on lines +40 to +44
<input
type='text'
value={usernameInput}
onChange={(e) => setUsernameInput(e.target.value)}
/>

Choose a reason for hiding this comment

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

You probably don't want to allow empty inputs

Choose a reason for hiding this comment

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

Nice and structured store 👍

setUsername: (username) => set({ username }),
setGameInfo: (data) => set({ gameInfo: data }),
setToggleClick: () => {
console.log("clicked ") //just testing

Choose a reason for hiding this comment

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

Remove console.logs in production

Comment on lines +17 to +24
if (loading) {
return (
<Lottie
animationData={Loading}
loop={true}
/>
)
}

Choose a reason for hiding this comment

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

Liking this! Very labyrinthy 😏

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.

3 participants