-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add support for hiding all fiat values #1281
Conversation
Deployed to Cloudflare Pages
|
f4e5697
to
591b37e
Compare
c843880
to
d7f9ba5
Compare
d7f9ba5
to
cf22b94
Compare
cf22b94
to
a40da2a
Compare
@@ -1,4 +1,4 @@ | |||
const validProtocols = ['http:', 'https:', 'ftp:', 'ipfs:', 'data:'] | |||
const validProtocols = ['http:', 'https:', 'ftp:', 'ipfs:', 'data:', 'mailto:'] |
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.
This is dangerous oasisprotocol/wallet#228
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.
Right, but to frame this properly, currently the only place we are using mailto links are the faucet links, which are hardwired in the code.
Maybe we should add this as an exception for the faucet link only, and not in the general frunction?
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.
Right, but to frame this properly, currently the only place we are using mailto links are the faucet links, which are hardwired in the code.
no, it was ensuring safety of validator logos and NFT links too
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.
Maybe we should add this as an exception for the faucet link only, and not in the general frunction?
sure, we can consider all our external links as safe
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.
Fixed in #1285.
@@ -53,7 +53,7 @@ export const ParaTimeSnapshot: FC<{ scope: SearchScope }> = ({ scope }) => { | |||
<Nodes scope={scope} /> | |||
</StyledGrid> | |||
<StyledGrid item xs={22} md={5}> | |||
{!mainToken.free && <TokenPriceCard token={mainToken} />} | |||
{showFiatValues && !mainToken.free && <TokenPriceCard token={mainToken} />} |
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.
what non-free token are we hiding now?
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.
The Pontus-X guys don't want to see any fiat values anywhere in their version, not even the price card. So, in their deployment, showFiatValue
will be set to false
via .env
, and so the token price card (for EUROe) will be hidden.
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.
In our version, including the current master branch, on the PontusX paratime dashboard, we can see the current price of EUROe
.
No description provided.