|
| 1 | +<script lang="ts"> |
| 2 | + import { Button, Text, TextType, TextHint } from 'shared/components' |
| 3 | + import { TextHintVariant } from 'shared/components/enums' |
| 4 | + import { getEnabledNetworkFromFeatureFlags } from '@core/network' |
| 5 | + import { NetworkId } from '@core/network/enums' |
| 6 | +
|
| 7 | + const NETWORK_ID = getEnabledNetworkFromFeatureFlags() |
| 8 | +
|
| 9 | + function onLinkClick(): void { |
| 10 | + window.open('https://chrome.google.com/webstore/detail/iota-wallet/iidjkmdceolghepehaaddojmnjnkkija', '_blank') |
| 11 | + } |
| 12 | +</script> |
| 13 | + |
| 14 | +{#if NETWORK_ID === [NetworkId.Shimmer] || NETWORK_ID === [NetworkId.ShimmerTestnet]} |
| 15 | + <Text type={TextType.h5} classes="mb-5">Firefly Shimmer is no longer maintained</Text> |
| 16 | + <div class="flex w-full flex-col space-y-6"> |
| 17 | + <div class="flex w-full flex-col space-y-4"> |
| 18 | + <TextHint |
| 19 | + variant={TextHintVariant.Info} |
| 20 | + text="Firefly Shimmer is no longer maintained or receiving updates" |
| 21 | + /> |
| 22 | + <Text fontSize="15" |
| 23 | + >Firefly Shimmer is no longer actively maintained by the IOTA Foundation. Please use it at your own |
| 24 | + risk, as future issues or vulnerabilities may not be addressed.</Text |
| 25 | + > |
| 26 | + </div> |
| 27 | + </div> |
| 28 | +{:else} |
| 29 | + <Text type={TextType.h5} classes="mb-5">Switch to the new IOTA Wallet</Text> |
| 30 | + <div class="flex w-full flex-col space-y-6"> |
| 31 | + <div class="flex w-full flex-col space-y-4"> |
| 32 | + <TextHint variant={TextHintVariant.Info} text="Firefly is no longer maintained or receiving updates" /> |
| 33 | + <Text fontSize="15" |
| 34 | + >Firefly is no longer actively maintained by the IOTA Foundation and is no longer compatible with the |
| 35 | + new IOTA Network. |
| 36 | + </Text> |
| 37 | + <Text fontSize="15">Please switch to our new IOTA Wallet browser extension.</Text> |
| 38 | + </div> |
| 39 | + <Button classes="w-full" onClick={onLinkClick}>Download New IOTA Wallet</Button> |
| 40 | + </div> |
| 41 | +{/if} |
0 commit comments