mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-13 19:30:30 +00:00
feat: SMS notification module.
This commit is contained in:
@@ -80,10 +80,19 @@ function NotifyInvoiceViaSMSForm({
|
||||
setNotificationType(values.notification_key);
|
||||
}
|
||||
};
|
||||
// Momerize the notification types.
|
||||
const notificationTypes = React.useMemo(
|
||||
() => [
|
||||
{ key: 'details', label: 'Invoice details' },
|
||||
{ key: 'reminder', label: 'Invoice reminder' },
|
||||
],
|
||||
[],
|
||||
);
|
||||
|
||||
return (
|
||||
<NotifyViaSMSForm
|
||||
initialValues={initialValues}
|
||||
notificationTypes={notificationTypes}
|
||||
onSubmit={handleFormSubmit}
|
||||
onCancel={handleFormCancel}
|
||||
onValuesChange={handleValuesChange}
|
||||
|
||||
Reference in New Issue
Block a user