From a1a3cf0134caaa1e674a4a084f82af18dd06673a Mon Sep 17 00:00:00 2001 From: thomas-senechal Date: Thu, 21 Dec 2023 12:15:26 +0100 Subject: [PATCH] Improve opening links in web browser --- .../src/components/SidePanels/Upload/Upload.tsx | 7 ++----- web/massastation/src/custom/openInWebBrowser.ts | 16 ++++++++++++++++ web/massastation/src/pages/Index/Index.tsx | 7 +++---- .../Search/DomainModelItem/DomainModelItem.tsx | 5 ++--- .../pages/Store/StationSection/StationPlugin.tsx | 5 ++--- 5 files changed, 25 insertions(+), 15 deletions(-) create mode 100644 web/massastation/src/custom/openInWebBrowser.ts diff --git a/web/massastation/src/components/SidePanels/Upload/Upload.tsx b/web/massastation/src/components/SidePanels/Upload/Upload.tsx index b6d25aebb..d5d86226f 100644 --- a/web/massastation/src/components/SidePanels/Upload/Upload.tsx +++ b/web/massastation/src/components/SidePanels/Upload/Upload.tsx @@ -7,7 +7,6 @@ import { routeFor } from '../../../utils/utils'; import { parseForm } from '../../../utils/ParseForm'; import { useAccountStore } from '../../../store/store'; import { AccountObject } from '../../../models/AccountModel'; -import { BrowserOpenURL } from '../../../../wailsjs/runtime'; import { URL } from '../../../const/url/url'; @@ -31,6 +30,7 @@ import { } from '../../../validation/upload'; import { MASSA_WALLET } from '../../../const/const'; import { MassaPluginModel } from '@/models'; +import { openInWebBrowser } from '@/custom/openInWebBrowser'; interface IFormError { websiteName?: string; @@ -244,10 +244,7 @@ export default function Upload() { ) : ( ,