From d26ef01afccaabedfae00e373eb7b12d5e37bc9f Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Sat, 6 Nov 2021 21:47:17 +0200 Subject: [PATCH] feat: notify by SMS. --- src/components/MoreMenutItems.js | 36 +++++++++++++ src/components/MoreVertMenutItems.js | 46 ---------------- src/components/index.js | 6 +-- .../NotifyContactViaSMSContent.js | 8 ++- .../NotifyContactViaSMSForm.js | 39 +++++++++++--- .../NotifyContactViaSMSForm.schema.js | 6 +-- .../NotifyContactViaSMSFormFields.js | 32 +++++++---- .../NotifyContactViaSMSFormProvider.js | 32 +++++++---- .../NotifyContactViaSMSDialog/index.js | 13 +++-- .../InvoiceDetailActionsBar.js | 16 +----- .../Drawers/InvoiceDetailDrawer/utils.js | 4 +- src/hooks/query/estimates.js | 35 ++++++++++++ src/hooks/query/invoices.js | 54 ++++++++++++++++--- src/hooks/query/paymentReceives.js | 31 +++++++++++ src/hooks/query/receipts.js | 31 ++++++++++- src/hooks/query/settings.js | 15 ++++++ src/hooks/query/types.js | 9 ++++ 17 files changed, 307 insertions(+), 106 deletions(-) create mode 100644 src/components/MoreMenutItems.js delete mode 100644 src/components/MoreVertMenutItems.js diff --git a/src/components/MoreMenutItems.js b/src/components/MoreMenutItems.js new file mode 100644 index 000000000..2201a7206 --- /dev/null +++ b/src/components/MoreMenutItems.js @@ -0,0 +1,36 @@ +import React from 'react'; +import { + Button, + Popover, + PopoverInteractionKind, + Position, + MenuItem, + Menu, +} from '@blueprintjs/core'; + +import { Icon, FormattedMessage as T } from 'components'; + +function MoreMenuItems({ payload: { onNotifyViaSMS } }) { + return ( + + } + /> + + } + interactionKind={PopoverInteractionKind.CLICK} + position={Position.BOTTOM_LEFT} + modifiers={{ + offset: { offset: '0, 4' }, + }} + > +