Skip to content

Commit

Permalink
advance
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna committed Sep 4, 2023
1 parent ad6791a commit 3783a81
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 29 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xlabs/portal-bridge-ui",
"version": "0.1.71",
"version": "0.1.72",
"private": true,
"dependencies": {
"@certusone/wormhole-sdk": "^0.9.22",
Expand Down
7 changes: 0 additions & 7 deletions public/sui/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ body {
letter-spacing: 0.02em;
justify-content: center;
}
#cctp-default-text {
display: none;
}

#cctp-optimism-text {
display: none;
}

.cctp-link {
text-align: center;
Expand Down
16 changes: 1 addition & 15 deletions public/sui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@
<div class="root">
<div class="container">
<div class="cctp-banner">
<span id="cctp-default-text">
Experience frictionless USDC transfers between Ethereum, Avalanche, and Arbitrum with Circle's CCTP.
</span>
<span id="cctp-optimism-text">
<span>
Experience frictionless USDC transfers between Ethereum, Avalanche, Arbitrum, and Optimism with Circle's CCTP.
</span>
<a class="cctp-link" href="https://portalbridge.com/usdc-bridge" target="_blank" rel="noopener noreferrer">
Expand Down Expand Up @@ -102,16 +99,5 @@
</div>

<script src="https://www.unpkg.com/@wormhole-foundation/[email protected]/dist/main.js"></script>
<script>
// To show Optimism option on SEPT 8th 2023
if (new Date() < new Date(2023, 8, 8)) {
document.getElementById("cctp-default-text").style.display = "block";
document.getElementById("cctp-optimism-text").style.display = "none";

} else {
document.getElementById("cctp-default-text").style.display = "none";
document.getElementById("cctp-optimism-text").style.display = "block";
}
</script>
</body>
</html>
5 changes: 1 addition & 4 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,8 @@ function App() {
[push]
);

// To show Optimism option on SEPT 8th 2023
const bannerMsg =
new Date() < new Date(2023, 8, 8)
? "Experience frictionless USDC transfers between Ethereum, Avalanche, and Arbitrum with Circle's CCTP. "
: "Experience frictionless USDC transfers between Ethereum, Avalanche, Arbitrum, and Optimism with Circle's CCTP. ";
"Experience frictionless USDC transfers between Ethereum, Avalanche, Arbitrum, and Optimism with Circle's CCTP. ";

return (
<div className={classes.bg}>
Expand Down

0 comments on commit 3783a81

Please sign in to comment.