mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: optimize style of SMS notifications module.
This commit is contained in:
@@ -5,6 +5,7 @@ import { Menu, MenuItem } from '@blueprintjs/core';
|
||||
|
||||
import { ButtonLink } from 'components';
|
||||
import { SwitchFieldCell } from 'components/DataTableCells';
|
||||
|
||||
import { safeInvoke } from 'utils';
|
||||
|
||||
/**
|
||||
@@ -63,7 +64,7 @@ export function ActionsMenu({
|
||||
* Retrieve SMS notifications messages table columns
|
||||
* @returns
|
||||
*/
|
||||
export function useSMSIntegrationTableColumns() {
|
||||
export function useSMSIntegrationTableColumns({ onSwitchChange }) {
|
||||
return React.useMemo(
|
||||
() => [
|
||||
{
|
||||
@@ -98,9 +99,10 @@ export function useSMSIntegrationTableColumns() {
|
||||
disableResizing: true,
|
||||
disableSortBy: true,
|
||||
width: '80',
|
||||
onSwitchChange,
|
||||
},
|
||||
],
|
||||
[],
|
||||
[onSwitchChange],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user