feat: add connect to bank dialog

This commit is contained in:
Ahmed Bouhuolia
2024-02-04 18:48:03 +02:00
parent e0ddcb022a
commit 299a943153
15 changed files with 214 additions and 24 deletions

View File

@@ -0,0 +1,30 @@
import { Button } from '@blueprintjs/core';
import { FFormGroup, FSelect } from '@/components';
import { useFormikContext } from 'formik';
export function ConnectBankDialogContent() {
const { isSubmitting } = useFormikContext();
return (
<div>
<FFormGroup
label={'Banking Syncing Service Provider'}
name={'serviceProvider'}
>
<FSelect
name={'serviceProvider'}
valueAccessor={'key'}
textAccessor={'label'}
popoverProps={{ minimal: true }}
items={BankFeedsServiceProviders}
/>
</FFormGroup>
<Button type={'submit'} loading={isSubmitting}>
Connect
</Button>
</div>
);
}
export const BankFeedsServiceProviders = [{ label: 'Plaid', key: 'plaid' }];