@rango-dev/widget-embedded 0.39.1-next.19 → 0.39.1-next.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.39.1-next.19",
3
+ "version": "0.39.1-next.20",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -9,13 +9,19 @@ import {
9
9
  Typography,
10
10
  } from '@rango-dev/ui';
11
11
  import React from 'react';
12
- import { useNavigate } from 'react-router-dom';
12
+ import { Link, useNavigate } from 'react-router-dom';
13
13
 
14
14
  import { WIDGET_UI_ID } from '../../constants';
15
+ import {
16
+ PROFILE_BANNER_IMAGE_SOURCE,
17
+ PROFILE_BANNER_NAVIGATION_LINK,
18
+ } from '../../constants/profileBanner';
15
19
  import { useUiStore } from '../../store/ui';
16
20
  import { getContainer } from '../../utils/common';
17
21
  import { WatermarkedModal } from '../common/WatermarkedModal';
18
22
 
23
+ import { ProfileBanner } from './SwapDetailsModal.styles';
24
+
19
25
  export function SwapDetailsCompleteModal(props: CompleteModalPropTypes) {
20
26
  const {
21
27
  open,
@@ -79,12 +85,13 @@ export function SwapDetailsCompleteModal(props: CompleteModalPropTypes) {
79
85
  <>
80
86
  {showProfileBanner && (
81
87
  <>
82
- <img
83
- src={
84
- 'https://raw.githubusercontent.com/rango-exchange/assets/main/banners/widget/profile.jpg'
85
- }
86
- alt="Profile Banner"
87
- />
88
+ <Link to={PROFILE_BANNER_NAVIGATION_LINK}>
89
+ <ProfileBanner
90
+ src={PROFILE_BANNER_IMAGE_SOURCE}
91
+ alt="Profile Banner"
92
+ />
93
+ </Link>
94
+
88
95
  <Divider size={30} />
89
96
  </>
90
97
  )}
@@ -12,3 +12,7 @@ export const TooltipErrorContent = styled('div', {
12
12
  display: 'block',
13
13
  },
14
14
  });
15
+
16
+ export const ProfileBanner = styled('img', {
17
+ width: '100%',
18
+ });
@@ -0,0 +1,3 @@
1
+ export const PROFILE_BANNER_IMAGE_SOURCE =
2
+ 'https://raw.githubusercontent.com/rango-exchange/assets/main/banners/widget/profile.jpg';
3
+ export const PROFILE_BANNER_NAVIGATION_LINK = '/profile';