Skip to content

Commit

Permalink
fix: add function to cards list as well (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
torrance-stripe authored Dec 8, 2023
1 parent 4e7b88e commit 63e14d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,20 @@ export const ConnectIssuingCard = ({

export const ConnectIssuingCardsList = ({
cardArtFileLink,
fetchEphemeralKey,
}: {
cardArtFileLink?: string;
fetchEphemeralKey?: FetchEphemeralKeyFunction;
}): JSX.Element => {
const {wrapper, component: issuingCardsList} =
useCreateComponent('issuing-cards-list');

useUpdateWithSetter(issuingCardsList, cardArtFileLink, (comp, val) =>
comp.setCardArtFileLink(val)
);
useUpdateWithSetter(issuingCardsList, fetchEphemeralKey, (comp, val) =>
comp.setFetchEphemeralKey(val)
);

return wrapper;
};

0 comments on commit 63e14d8

Please sign in to comment.