@rango-dev/widget-embedded 0.23.1-next.33 → 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.
- package/dist/containers/Inputs/Inputs.d.ts.map +1 -1
- package/dist/containers/Inputs/Inputs.types.d.ts +1 -0
- package/dist/containers/Inputs/Inputs.types.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/dist/pages/Home.d.ts.map +1 -1
- package/dist/store/slices/config.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/containers/Inputs/Inputs.tsx +2 -9
- package/src/containers/Inputs/Inputs.types.ts +1 -0
- package/src/pages/Home.tsx +1 -0
- package/src/store/slices/config.ts +1 -0
package/dist/pages/Home.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/store/slices/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAE1D,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"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D_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}
|
package/src/pages/Home.tsx
CHANGED