@rango-dev/ui 0.1.14-next.2 → 0.1.14-next.3
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/Settings/Settings.d.ts +1 -1
- package/dist/ui.cjs.development.js +1 -1
- package/dist/ui.cjs.development.js.map +1 -1
- package/dist/ui.cjs.production.min.js +1 -1
- package/dist/ui.cjs.production.min.js.map +1 -1
- package/dist/ui.esm.js +1 -1
- package/dist/ui.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Settings/Settings.tsx +2 -2
|
@@ -4,7 +4,7 @@ declare type Theme = 'dark' | 'light' | 'auto';
|
|
|
4
4
|
export interface PropTypes {
|
|
5
5
|
slippages: number[];
|
|
6
6
|
selectedSlippage: number;
|
|
7
|
-
customSlippage: number;
|
|
7
|
+
customSlippage: number | null;
|
|
8
8
|
maxSlippage: number;
|
|
9
9
|
minSlippage: number;
|
|
10
10
|
liquiditySources: LiquiditySource[];
|
|
@@ -4112,7 +4112,7 @@ function Settings(props) {
|
|
|
4112
4112
|
});
|
|
4113
4113
|
}), React__default.createElement(TextField, {
|
|
4114
4114
|
type: "number",
|
|
4115
|
-
value: customSlippage,
|
|
4115
|
+
value: customSlippage || '',
|
|
4116
4116
|
onChange: function onChange(event) {
|
|
4117
4117
|
var parsedValue = parseFloat(event.target.value);
|
|
4118
4118
|
if (!parsedValue || parsedValue >= minSlippage && parsedValue <= maxSlippage) onCustomSlippageChange(parsedValue);
|