Closed youami closed 2 years ago
Thanks for the detailed review and comments @rorysaur! Refactored and pushed.
yarn format
didn't work for me, but npx standard --fix
did. I staged only the files I touched so I hope this will resolve the build issue. If not would be happy to sync on how to make it correctly.
PS. Non-blocking, but as a favor, if you could rewrite the code in the wallet homepage to use the new getUrl
, that would be perfect:
https://github.com/kernel-community/services/blob/main/packages/wallet/src/views/Home.jsx#L16
https://github.com/kernel-community/services/blob/main/packages/wallet/src/views/Home.jsx#L80
@rorysaur added separate commits for the changes per your comments and another one for the change in wallet home. I hope that I got the linting right this time :)
Closes #19
Footer component refactored:
Footer
has children those are rendered as is. IffooterLinks
are provided onFooter
they are ignored.Footer
has no children, one can usefooterLinks
to pass an array of objects each containingapp
which is the subdomain to create a link with andtitle
.Footer
has no children and nofooterLinks
are provided, defaultfooterLinks
are used which currently include the links to 'explorer', 'unprofile', 'adventures', 'portal'.Additional changes:
getUrl
function is now available incommon
which get the app name as a param and returns the full URL for the corresponding env.