Skip to content

Commit

Permalink
Dismiss VPN2 toast on click
Browse files Browse the repository at this point in the history
(cherry picked from commit 09694ec)
  • Loading branch information
tadaskay committed Dec 19, 2023
1 parent a628396 commit 5be1b43
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ export const MysteriumVPN2Toast: React.FC = () => {
link = "https://www.mysteriumvpn.com/mysterium-vpn-v2?utm_source=MysteriumDark&utm_medium=Other&utm_campaign=Banner"
}

toast(dismissibleToast(
const toastID = toast(dismissibleToast(
<Container>
<a onClick={() => {
shell.openExternal(link);
config.setVpn2Offered()
toast.dismiss(toastID)
}}>
<b>MysteriumVPN 2.0 for Desktop is available</b><br />
<span>Download the new app to use Mysterium VPN on Android, iOS, Mac and Windows</span>
Expand Down

0 comments on commit 5be1b43

Please sign in to comment.