-
Notifications
You must be signed in to change notification settings - Fork 5
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
path
required for Pages
#31
Comments
hi @oehm-smith thank you very much for your valuable feedback. You're right, probably I blindly copy-pasted the HomePageRoute which doesn't need path but index:true. TBH, I created the documentation website, added some content and forgot it :) But when I have more time, I'll improve it. Meanwhile, feel free to send PR to it's repository here: https://github.com/huseyindeniz/react-dapp-template-documentation I'll keep this Issue open until I updated the documentation website. Thanks again. |
Great thanks for your feedback. I'll get you a PR. But what is
|
Thank you very much for the documentation update. PageType is union of my custom MenuType type and React Router package RouteObject and most of the props coming from RouteObject. and index is for special routes described more here: index-routes But I realized smt else when I look at your latest comment. The code you showed is for handling "Routes with lang parameter in the URL". At the time of developing, I just tried to make it work and didn't think about the design much. I just needed "lang parameter in the URL" and I needed "menu items". And I managed to make it work with that horrible code that even I can't understand anymore :D When I have more time, I'll think about the design. Maybe PageType was not a good idea. Not sure at this point. I'll think about this. |
Describe the bug
Really nice template thanks. However some teething issues. This one is for the documentation.
The documentation at https://huseyindeniz.github.io/react-dapp-template-documentation/docs/tutorial-basics/create-a-page says:
But you also need to add
path
to get the new page to work. For example:It also wouldn't hurt to add some more details to this page. For example:
isProtected
is if Wallet authentication is requiredisShownInXMenu
- at least one of these must be trueThe text was updated successfully, but these errors were encountered: