@dubsdotapp/expo 0.2.6 → 0.2.7
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/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/ui/game/CreateCustomGameSheet.tsx +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -786,11 +786,12 @@ interface CreateCustomGameSheetProps {
|
|
|
786
786
|
maxPlayers?: number;
|
|
787
787
|
fee?: number;
|
|
788
788
|
presetAmounts?: number[];
|
|
789
|
+
defaultAmount?: number;
|
|
789
790
|
metadata?: Record<string, unknown>;
|
|
790
791
|
onSuccess?: (result: CreateCustomGameMutationResult) => void;
|
|
791
792
|
onError?: (error: Error) => void;
|
|
792
793
|
}
|
|
793
|
-
declare function CreateCustomGameSheet({ visible, onDismiss, title, maxPlayers, fee, presetAmounts, metadata, onSuccess, onError, }: CreateCustomGameSheetProps): react_jsx_runtime.JSX.Element;
|
|
794
|
+
declare function CreateCustomGameSheet({ visible, onDismiss, title, maxPlayers, fee, presetAmounts, defaultAmount, metadata, onSuccess, onError, }: CreateCustomGameSheetProps): react_jsx_runtime.JSX.Element;
|
|
794
795
|
|
|
795
796
|
/**
|
|
796
797
|
* Deserialize a base64-encoded transaction, sign via wallet adapter, send to Solana.
|
package/dist/index.d.ts
CHANGED
|
@@ -786,11 +786,12 @@ interface CreateCustomGameSheetProps {
|
|
|
786
786
|
maxPlayers?: number;
|
|
787
787
|
fee?: number;
|
|
788
788
|
presetAmounts?: number[];
|
|
789
|
+
defaultAmount?: number;
|
|
789
790
|
metadata?: Record<string, unknown>;
|
|
790
791
|
onSuccess?: (result: CreateCustomGameMutationResult) => void;
|
|
791
792
|
onError?: (error: Error) => void;
|
|
792
793
|
}
|
|
793
|
-
declare function CreateCustomGameSheet({ visible, onDismiss, title, maxPlayers, fee, presetAmounts, metadata, onSuccess, onError, }: CreateCustomGameSheetProps): react_jsx_runtime.JSX.Element;
|
|
794
|
+
declare function CreateCustomGameSheet({ visible, onDismiss, title, maxPlayers, fee, presetAmounts, defaultAmount, metadata, onSuccess, onError, }: CreateCustomGameSheetProps): react_jsx_runtime.JSX.Element;
|
|
794
795
|
|
|
795
796
|
/**
|
|
796
797
|
* Deserialize a base64-encoded transaction, sign via wallet adapter, send to Solana.
|
package/dist/index.js
CHANGED
|
@@ -2804,7 +2804,8 @@ function CreateCustomGameSheet({
|
|
|
2804
2804
|
title,
|
|
2805
2805
|
maxPlayers = 2,
|
|
2806
2806
|
fee = 5,
|
|
2807
|
-
presetAmounts = [0.1, 0.5, 1],
|
|
2807
|
+
presetAmounts = [0.01, 0.1, 0.5, 1],
|
|
2808
|
+
defaultAmount = 0.01,
|
|
2808
2809
|
metadata,
|
|
2809
2810
|
onSuccess,
|
|
2810
2811
|
onError
|
|
@@ -2825,7 +2826,7 @@ function CreateCustomGameSheet({
|
|
|
2825
2826
|
}, [visible, overlayOpacity]);
|
|
2826
2827
|
(0, import_react20.useEffect)(() => {
|
|
2827
2828
|
if (visible) {
|
|
2828
|
-
setSelectedAmount(null);
|
|
2829
|
+
setSelectedAmount(defaultAmount ?? null);
|
|
2829
2830
|
setCustomAmount("");
|
|
2830
2831
|
setIsCustom(false);
|
|
2831
2832
|
mutation.reset();
|