diff --git a/apps/ui-icons/src/Warning.tsx b/apps/ui-icons/src/Warning.tsx new file mode 100644 index 00000000000..38ad107b18a --- /dev/null +++ b/apps/ui-icons/src/Warning.tsx @@ -0,0 +1,24 @@ +// Copyright (c) 2024 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +import { SVGProps } from 'react'; +export default function SvgWarning(props: SVGProps) { + return ( + + + ; + + ); +} diff --git a/apps/ui-icons/src/index.ts b/apps/ui-icons/src/index.ts index 21ce449ee70..7737bbdf955 100644 --- a/apps/ui-icons/src/index.ts +++ b/apps/ui-icons/src/index.ts @@ -76,3 +76,4 @@ export { default as Unpined } from './Unpined'; export { default as Vest } from './Vest'; export { default as VisibilityOff } from './VisibilityOff'; export { default as VisibilityOn } from './VisibilityOn'; +export { default as Warning } from './Warning'; diff --git a/apps/ui-icons/svgs/warning.svg b/apps/ui-icons/svgs/warning.svg new file mode 100644 index 00000000000..b810b54f7bd --- /dev/null +++ b/apps/ui-icons/svgs/warning.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/apps/wallet/src/ui/app/pages/site-connect/index.tsx b/apps/wallet/src/ui/app/pages/site-connect/index.tsx index 8417fe77f48..62e1a615dae 100644 --- a/apps/wallet/src/ui/app/pages/site-connect/index.tsx +++ b/apps/wallet/src/ui/app/pages/site-connect/index.tsx @@ -17,11 +17,11 @@ import { type SerializedUIAccount } from '_src/background/accounts/Account'; import { ampli } from '_src/shared/analytics/ampli'; import { useCallback, useEffect, useMemo, useState } from 'react'; import { useParams } from 'react-router-dom'; - import { useAccountGroups } from '../../hooks/useAccountGroups'; import { useActiveAccount } from '../../hooks/useActiveAccount'; import { PageMainLayoutTitle } from '../../shared/page-main-layout/PageMainLayoutTitle'; -import st from './SiteConnectPage.module.scss'; +import { InfoBox, InfoBoxStyle, InfoBoxType } from '@iota/apps-ui-kit'; +import { Warning } from '@iota/ui-icons'; function SiteConnectPage() { const { requestID } = useParams(); @@ -107,16 +107,24 @@ function SiteConnectPage() { blended > -
-

Your Connection is Not Secure

-
- -
- If you connect your wallet to this site your data could be exposed to - attackers. Click **Reject** if you don't trust this site. -
-
- Continue at your own risk. +
+ } + /> +
+ + Connecting your wallet to this site could expose your data to + attackers. + + + If you don't have confidence in this site, reject the + connection. + +
) : (