-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat(demo): possible to try tavla without creating a user #1569
Conversation
emilielr
commented
Jul 3, 2024
•
edited
Loading
edited
- Use local storage to store the demo board. Created a custom hook to keep track of and update the local storage, so it can be used by other components if needed in the future -> if demo board is no longer supposed to be in local storage (e g moved to firestore), the hook can be omitted
- still need to pass the demoboard prop down to the tilecard to listen for changes in the tiles. not optimal, but the only solution i found to be able to update local storage (it doesnt seem there is a way to listen to changes in the local storage)
- if demo board, show another error text on "gåavstand" (see pic 2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 legger vi inn noe måling her er det good for me ⭐
Vi velger å gå for at gåavstand bare ligger der slik den gjør inntil videre. Jeg har lagt til måling på opprett-bruker knappene og legg til stoppested knappen (for å sjekke om noen faktisk bruker den). Man blir også redirectet til "tavler"-siden om man logger inn direkte fra demo-siden. |