@rango-dev/widget-embedded 0.23.1-next.18 → 0.23.1-next.19
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/dist/components/Quote/Quote.d.ts.map +1 -1
- package/dist/components/Quotes/Quotes.d.ts.map +1 -1
- package/dist/containers/App/App.styles.d.ts.map +1 -1
- package/dist/containers/ExpandedQuotes/ExpandedQuotes.styles.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
- package/src/components/Quote/Quote.tsx +4 -1
- package/src/components/Quotes/Quotes.tsx +4 -3
- package/src/containers/App/App.styles.ts +0 -4
- package/src/containers/ExpandedQuotes/ExpandedQuotes.styles.ts +1 -0
- package/src/pages/Home.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.23.1-next.
|
|
3
|
+
"version": "0.23.1-next.19",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@rango-dev/queue-manager-core": "^0.26.0",
|
|
26
26
|
"@rango-dev/queue-manager-rango-preset": "^0.28.1-next.3",
|
|
27
27
|
"@rango-dev/queue-manager-react": "^0.26.0",
|
|
28
|
-
"@rango-dev/ui": "^0.29.1-next.
|
|
28
|
+
"@rango-dev/ui": "^0.29.1-next.15",
|
|
29
29
|
"@rango-dev/wallets-react": "^0.14.1-next.1",
|
|
30
30
|
"@rango-dev/wallets-shared": "^0.28.1-next.1",
|
|
31
31
|
"bignumber.js": "^9.1.1",
|
|
@@ -300,6 +300,8 @@ export function Quote(props: QuoteProps) {
|
|
|
300
300
|
GAS_FEE_MAX_DECIMALS
|
|
301
301
|
);
|
|
302
302
|
|
|
303
|
+
const feeWarning = totalFee.gte(new BigNumber(GAS_FEE_MAX));
|
|
304
|
+
|
|
303
305
|
return fullExpandedMode ? (
|
|
304
306
|
<FullExpandedQuote
|
|
305
307
|
selected={selected}
|
|
@@ -308,6 +310,7 @@ export function Quote(props: QuoteProps) {
|
|
|
308
310
|
tooltipContainer={getExpanded()}
|
|
309
311
|
steps={steps}
|
|
310
312
|
tags={sortedQuoteTags}
|
|
313
|
+
feeWarning={feeWarning}
|
|
311
314
|
percentageChange={percentageChange}
|
|
312
315
|
warningLevel={priceImpactWarningLevel}
|
|
313
316
|
outputPrice={{
|
|
@@ -345,7 +348,7 @@ export function Quote(props: QuoteProps) {
|
|
|
345
348
|
quote={quote}
|
|
346
349
|
time={totalTime}
|
|
347
350
|
fee={fee}
|
|
348
|
-
feeWarning={
|
|
351
|
+
feeWarning={feeWarning}
|
|
349
352
|
showModalFee={showModalFee}
|
|
350
353
|
steps={numberOfSteps}
|
|
351
354
|
/>
|
|
@@ -79,7 +79,7 @@ export function Quotes(props: PropTypes) {
|
|
|
79
79
|
expanded={false}
|
|
80
80
|
/>
|
|
81
81
|
)}
|
|
82
|
-
<Divider size={16} />
|
|
82
|
+
{index !== ITEM_SKELETON_COUNT - 1 && <Divider size={16} />}
|
|
83
83
|
</React.Fragment>
|
|
84
84
|
))}
|
|
85
85
|
|
|
@@ -97,9 +97,10 @@ export function Quotes(props: PropTypes) {
|
|
|
97
97
|
</>
|
|
98
98
|
)}
|
|
99
99
|
{hasQuotes
|
|
100
|
-
? sortQuotes.map((quote) => {
|
|
100
|
+
? sortQuotes.map((quote, index) => {
|
|
101
101
|
const quoteWarning = getQuoteWarning(quote);
|
|
102
102
|
const quoteError = getQuoteError(quote.swaps);
|
|
103
|
+
const lastIndex = sortQuotes.length - 1 === index;
|
|
103
104
|
|
|
104
105
|
return (
|
|
105
106
|
<React.Fragment key={quote.requestId}>
|
|
@@ -124,7 +125,7 @@ export function Quotes(props: PropTypes) {
|
|
|
124
125
|
}}
|
|
125
126
|
type="list-item"
|
|
126
127
|
/>
|
|
127
|
-
<Divider size={16} />
|
|
128
|
+
{!lastIndex && <Divider size={16} />}
|
|
128
129
|
</React.Fragment>
|
|
129
130
|
);
|
|
130
131
|
})
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { styled } from '@rango-dev/ui';
|
|
2
2
|
|
|
3
3
|
export const MainContainer = styled('div', {
|
|
4
|
-
display: 'flex',
|
|
5
|
-
justifyContent: 'center',
|
|
6
|
-
alignItems: 'center',
|
|
7
4
|
fontFamily: '$widget',
|
|
8
5
|
boxSizing: 'border-box',
|
|
9
6
|
textAlign: 'left',
|
|
10
|
-
|
|
11
7
|
'& *, *::before, *::after': {
|
|
12
8
|
boxSizing: 'inherit',
|
|
13
9
|
},
|