@wf-financing/ui 1.4.2 → 1.4.4
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/CHANGELOG.md +6 -0
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
- package/src/components/modal/ModalFooter.tsx +2 -1
package/CHANGELOG.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -93896,7 +93896,7 @@ const Iet = [
|
|
|
93896
93896
|
n.mutate(void 0, {
|
|
93897
93897
|
onSuccess: (o) => {
|
|
93898
93898
|
const { next: l } = o;
|
|
93899
|
-
window.open(l);
|
|
93899
|
+
e(!1), window.open(l);
|
|
93900
93900
|
},
|
|
93901
93901
|
onError: (o) => {
|
|
93902
93902
|
console.error("Failed to start application", o);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { IconArrowOnSquareUpRight16Line } from '@wayflyer/flyui-icons/16/line';
|
|
|
3
3
|
import { StartHostedApplicationResponseType } from '@wf-financing/embedded-types';
|
|
4
4
|
import { FormattedMessage } from 'react-intl';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { useDetectSmallScreen, useStartHostedApplication } from '../../hooks';
|
|
7
7
|
|
|
8
8
|
type ModalFooterType = {
|
|
9
9
|
setOpen: (isOpen: boolean) => void;
|
|
@@ -18,6 +18,7 @@ export const ModalFooter = ({ setOpen }: ModalFooterType) => {
|
|
|
18
18
|
startHostedAppMutation.mutate(undefined, {
|
|
19
19
|
onSuccess: (nextUrl: StartHostedApplicationResponseType) => {
|
|
20
20
|
const { next } = nextUrl;
|
|
21
|
+
setOpen(false);
|
|
21
22
|
window.open(next);
|
|
22
23
|
},
|
|
23
24
|
onError: (error) => {
|