Skip to content

Commit

Permalink
feat: 🎸 (uikit) payment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
divisey committed Feb 21, 2023
1 parent 1f05d98 commit 416b261
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/poor-clocks-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@foxone/uikit": patch
---

update payment
8 changes: 6 additions & 2 deletions packages/uikit/src/plugins/payment.stories.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { StoryFn } from "@storybook/vue3";
import { usePayment } from "./payment";
import { useToast } from "./toast";

export default {
title: "Plugin/Payment",
};

const Template: StoryFn = (args) => ({
setup() {
const toast = useToast();
const payment = usePayment();
const open = () => {
payment.show({
const open = async () => {
await payment.show({
assetId: "965e5c6e-434c-3fa9-b780-c50f43cd955c",
scheme: "mixin://mock-payment-scheme",
amount: "1",
Expand All @@ -31,6 +33,8 @@ const Template: StoryFn = (args) => ({
});
},
});

toast.success({ message: "check payment success" });
};

return { open };
Expand Down

0 comments on commit 416b261

Please sign in to comment.