Skip to content

Commit af72967

Browse files
committed
Merge branch 'cash-reward-redemption' of https://github.com/saasquatch/program-tools into cash-reward-redemption
2 parents f38f042 + 40641a3 commit af72967

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

packages/mint-components/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mint-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@saasquatch/mint-components",
33
"title": "Mint Components",
4-
"version": "2.3.0-7",
4+
"version": "2.3.0-9",
55
"description": "A minimal design library with components for referral and loyalty experiences. Built with Shoelace components by Saasquatch.",
66
"icon": "https://res.cloudinary.com/saasquatch/image/upload/v1652219900/squatch-assets/For_Mint.svg",
77
"raisins": "docs/raisins.json",

packages/mint-components/src/components/sqm-partner-info-modal/sqm-partner-info-modal-view.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export interface PartnerInfoModalViewProps {
2525
setCountrySearch: (c: any) => void;
2626
onSubmit: () => void;
2727
onClose: () => void;
28+
onInitialFocus?: (e: any) => void;
2829
};
2930
text: {
3031
modalHeader: string;
@@ -292,6 +293,7 @@ export function PartnerInfoModalView(props: PartnerInfoModalViewProps) {
292293
e.preventDefault();
293294
}
294295
}}
296+
onSl-initial-focus={callbacks.onInitialFocus}
295297
>
296298
<h2 class={sheet.classes.DialogTitle}>
297299
{states.isExistingPartner

packages/mint-components/src/components/sqm-partner-info-modal/sqm-partner-info-modal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class PartnerInfoModal {
195195
}
196196

197197
function useDemoPartnerInfoModal(
198-
props: PartnerInfoModal
198+
props: PartnerInfoModal,
199199
): PartnerInfoModalViewProps {
200200
const [countryCode, setCountryCode] = useState("US");
201201
const [currency, setCurrency] = useState("");
@@ -247,6 +247,7 @@ function useDemoPartnerInfoModal(
247247
setError("");
248248
},
249249
onClose: () => {},
250+
onInitialFocus: (e: any) => e.preventDefault(),
250251
},
251252
text: {
252253
modalHeader: props.modalHeader,
@@ -265,6 +266,6 @@ function useDemoPartnerInfoModal(
265266
},
266267
},
267268
props.demoData || stateOverride,
268-
{ arrayMerge: (_, a) => a }
269+
{ arrayMerge: (_, a) => a },
269270
);
270271
}

0 commit comments

Comments
 (0)