Skip to content

Commit

Permalink
The freshest portal: Update banner image and fix an issue with banner…
Browse files Browse the repository at this point in the history
… display on Tenderly fork (#264)

Feeling pretty confident about setting `ISLAND_NETWORK` based on env
variable but please correct me if I'm imagining things.

<img width="423" alt="Screenshot 2023-10-16 at 22 22 35"
src="https://github.com/tahowallet/tally-extension-token/assets/8245/3624a3dc-c8cb-4fb0-91c0-35e7c42d5737">

Also set the final dApp URL after checking in with @mr-michael .

Latest build:
[extension-builds-264](https://github.com/tahowallet/tally-extension-token/suites/17300266372/artifacts/988387326)
(as of Tue, 17 Oct 2023 02:44:20 GMT).
  • Loading branch information
jagodarybacka authored Oct 17, 2023
2 parents f6c5868 + c7d821b commit 365cc5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions background/services/island/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ import browser from "webextension-polyfill"
import { ethers } from "ethers"
import { SmartContractFungibleAsset } from "../../assets"
import { WEBSITE_ORIGIN } from "../../constants/website"
import { ARBITRUM_SEPOLIA } from "../../constants"
import { ARBITRUM_ONE, ARBITRUM_SEPOLIA } from "../../constants"
import { NormalizedEVMAddress } from "../../types"

export const ISLAND_NETWORK = ARBITRUM_SEPOLIA // TODO: change once we move to Arbitrum One
export const ISLAND_NETWORK =
process.env.SUPPORT_THE_ISLAND_ON_TENDERLY === "true"
? ARBITRUM_ONE
: ARBITRUM_SEPOLIA // TODO: change once we move to Arbitrum One

export const VOTE_WITH_FRIENDS_ADDRESS =
"0x0036B3a9D385Ce2CC072cf4A26dE29aE3283DEd0"
Expand Down
3 changes: 1 addition & 2 deletions ui/components/Wallet/Banner/PortalBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export default function PortalBanner(): ReactElement | null {
const dispatch = useBackgroundDispatch()

const showIslandAndDismissBanner = () => {
// FIXME Shortcut. We should use a real link here.
browser.tabs.create({ url: "https://island.taho.xyz" })
browser.tabs.create({ url: "https://app.taho.xyz" })
dispatch(dismissableItemMarkedAsShown("testnet-portal-is-open-banner"))
}

Expand Down
Binary file modified ui/public/images/island/portal-image@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 365cc5a

Please sign in to comment.