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

Scroll gov site improvements #508

Merged
merged 3 commits into from
Sep 19, 2024
Merged

Scroll gov site improvements #508

merged 3 commits into from
Sep 19, 2024

Conversation

mcgingras
Copy link
Collaborator

Fixes nits suggested by scroll team.

Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agora-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 8:17pm
agora-next-cyber ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 8:17pm
agora-next-ens ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 8:17pm
agora-next-etherfi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 8:17pm
agora-next-scroll ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 8:17pm
agora-next-uniswap ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 8:17pm


const { contracts } = Tenant.current();
const { contracts, ui } = Tenant.current();
const shouldHideAgoraBranding = ui.hideAgoraBranding;
Copy link
Contributor

@jefag jefag Sep 19, 2024

Choose a reason for hiding this comment

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

Maybe consider flipping the language and the flag.

ie shouldHaveAgoraBranding.

And then the setting should be false for when it's not wanted, and true by default.

Edit: spelling

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

for me this makes sense because we don't even need to add a default -- if the tenant does not have this flag set, it will be undefined, which will be false, so it's default false. Then, if you want to hide, you have to go through the work of setting a flag.

happy to change though if the other way around makes sense to majority of other folks

Copy link
Contributor

@andreitr andreitr left a comment

Choose a reason for hiding this comment

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

Looks good!

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