feat: select payment methods dialog

This commit is contained in:
Ahmed Bouhuolia
2024-09-18 10:43:21 +02:00
parent eb48f66f6e
commit 5270e99de8
9 changed files with 264 additions and 7 deletions

View File

@@ -3,10 +3,22 @@ import React from 'react';
import intl from 'react-intl-universal';
import styled from 'styled-components';
import { FFormGroup, FEditableText, FormattedMessage as T } from '@/components';
import { useDialogActions } from '@/hooks/state';
import { DialogsName } from '@/constants/dialogs';
export function InvoiceFormFooterLeft() {
const { openDialog } = useDialogActions();
const handleSelectPaymentMethodsClick = () => {
openDialog(DialogsName.SelectPaymentMethod, {});
}
return (
<React.Fragment>
<FFormGroup label={'Payment Options'} name={'payment_method_id'}>
<a href={'#'} onClick={handleSelectPaymentMethodsClick}>Payment Options</a>
</FFormGroup>
{/* --------- Invoice message --------- */}
<InvoiceMsgFormGroup
name={'invoice_message'}