mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-07-11 11:05:17 +00:00
34 lines
900 B
TypeScript
34 lines
900 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import { Dialog, DialogSuspense } from '@/components';
|
|
import { compose } from '@/utils';
|
|
import withDialogRedux from '@/components/DialogReduxConnect';
|
|
import { StripePreSetupDialogContent } from './StripePreSetupDialogContent';
|
|
|
|
/**
|
|
* Select payment methods dialogs.
|
|
*/
|
|
function StripePreSetupDialogRoot({ dialogName, payload, isOpen }) {
|
|
return (
|
|
<Dialog
|
|
name={dialogName}
|
|
isOpen={isOpen}
|
|
payload={payload}
|
|
title={'Connect a Stripe account to accept card payments'}
|
|
canEscapeJeyClose={true}
|
|
autoFocus={true}
|
|
style={{ width: 500 }}
|
|
>
|
|
<DialogSuspense>
|
|
<StripePreSetupDialogContent />
|
|
</DialogSuspense>
|
|
</Dialog>
|
|
);
|
|
}
|
|
|
|
export const StripePreSetupDialog = compose(withDialogRedux())(
|
|
StripePreSetupDialogRoot,
|
|
);
|
|
|
|
StripePreSetupDialogRoot.displayName = 'StripePreSetupDialog';
|