@rango-dev/widget-embedded 0.23.1-next.34 → 0.23.1-next.35

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../src/pages/Home.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA4BnD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAEjD,wBAAgB,IAAI,sBAwMnB"}
1
+ {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../src/pages/Home.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA4BnD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAEjD,wBAAgB,IAAI,sBAyMnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.23.1-next.34",
3
+ "version": "0.23.1-next.35",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -14,7 +14,6 @@ import {
14
14
  USD_VALUE_MAX_DECIMALS,
15
15
  USD_VALUE_MIN_DECIMALS,
16
16
  } from '../../constants/routing';
17
- import { useAppStore } from '../../store/AppStore';
18
17
  import { useQuoteStore } from '../../store/quote';
19
18
  import { useWalletsStore } from '../../store/wallets';
20
19
  import { getContainer } from '../../utils/common';
@@ -26,7 +25,7 @@ import { formatBalance, isFetchingBalance } from '../../utils/wallets';
26
25
  import { Container, FromContainer } from './Inputs.styles';
27
26
 
28
27
  export function Inputs(props: PropTypes) {
29
- const { fetchingQuote, fetchMetaStatus, onClickToken } = props;
28
+ const { fetchingQuote, fetchMetaStatus, onClickToken, isExpandable } = props;
30
29
  const {
31
30
  fromToken,
32
31
  fromBlockchain,
@@ -40,10 +39,6 @@ export function Inputs(props: PropTypes) {
40
39
  selectedQuote,
41
40
  } = useQuoteStore();
42
41
  const { connectedWallets, getBalanceFor } = useWalletsStore();
43
- const {
44
- config: { variant },
45
- } = useAppStore();
46
-
47
42
  const fromTokenBalance = fromToken ? getBalanceFor(fromToken) : null;
48
43
 
49
44
  const fromTokenFormattedBalance =
@@ -120,9 +115,7 @@ export function Inputs(props: PropTypes) {
120
115
  <SwitchFromAndToButton />
121
116
  </FromContainer>
122
117
  <SwapInput
123
- sharpBottomStyle={
124
- variant === 'default' && (!!selectedQuote || fetchingQuote)
125
- }
118
+ sharpBottomStyle={!isExpandable && (!!selectedQuote || fetchingQuote)}
126
119
  label={i18n.t('To')}
127
120
  mode="To"
128
121
  fetchingQuote={fetchingQuote}
@@ -4,4 +4,5 @@ export type PropTypes = {
4
4
  fetchingQuote: boolean;
5
5
  fetchMetaStatus: FetchStatus;
6
6
  onClickToken: (mode: 'from' | 'to') => void;
7
+ isExpandable?: boolean;
7
8
  };
@@ -169,6 +169,7 @@ export function Home() {
169
169
  <Inputs
170
170
  fetchingQuote={fetchingQuote}
171
171
  fetchMetaStatus={fetchMetaStatus}
172
+ isExpandable={isExpandable}
172
173
  onClickToken={(mode) => {
173
174
  onHandleNavigation(
174
175
  mode === 'from'