From f31cb4510aab880394763f2ddd7cd4521e307cbb Mon Sep 17 00:00:00 2001 From: Stephen Okpalaononuju Date: Wed, 13 Dec 2023 14:03:24 +0100 Subject: [PATCH] ch: fix lint issue --- plugin-hrm-form/src/components/case/CaseHome.tsx | 4 ++-- .../caseMergingBanners/ContactAddedToCaseBanner.tsx | 2 +- plugin-hrm-form/src/components/search/CasePreview/index.tsx | 2 +- plugin-hrm-form/src/states/contacts/actions.ts | 2 +- plugin-hrm-form/src/states/contacts/types.ts | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugin-hrm-form/src/components/case/CaseHome.tsx b/plugin-hrm-form/src/components/case/CaseHome.tsx index 4aab329520..843b87f48a 100644 --- a/plugin-hrm-form/src/components/case/CaseHome.tsx +++ b/plugin-hrm-form/src/components/case/CaseHome.tsx @@ -243,7 +243,7 @@ const CaseHome: React.FC = ({ isConnectedToTaskContact={isConnectedToTaskContact} onClickConnectToTaskContact={() => { connectCaseToTaskContact(taskContact, connectedCaseState.connectedCase); - setCaseConnectedToContact(connectedCaseState.connectedCase) + setCaseConnectedToContact(connectedCaseState.connectedCase); closeModal(); }} color="black" @@ -357,7 +357,7 @@ const mapDispatchToProps = (dispatch: Dispatch, { task }: CaseHomeProps) => connectCaseToTaskContact: async (taskContact: Contact, cas: Case) => asyncDispatch(dispatch)(connectToCaseAsyncAction(taskContact.id, cas.id)), closeModal: () => dispatch(newCloseModalAction(task.taskSid, 'tabbed-forms')), - setCaseConnectedToContact: (connectedCase: Case) => dispatch(setCaseConnectedToContact(connectedCase)) + setCaseConnectedToContact: (connectedCase: Case) => dispatch(setCaseConnectedToContact(connectedCase)), }); const connector = connect(mapStateToProps, mapDispatchToProps); const connected = connector(CaseHome); diff --git a/plugin-hrm-form/src/components/caseMergingBanners/ContactAddedToCaseBanner.tsx b/plugin-hrm-form/src/components/caseMergingBanners/ContactAddedToCaseBanner.tsx index 7ade11946d..b7936d1695 100644 --- a/plugin-hrm-form/src/components/caseMergingBanners/ContactAddedToCaseBanner.tsx +++ b/plugin-hrm-form/src/components/caseMergingBanners/ContactAddedToCaseBanner.tsx @@ -40,7 +40,7 @@ type Props = OwnProps & ReturnType & ReturnType { const contact = selectContactByTaskSid(state, taskId); const caseId = contact?.savedContact?.caseId; - const connectedCase = state[namespace].activeContacts?.caseConnectedToContact + const connectedCase = state[namespace].activeContacts?.caseConnectedToContact; return { contact: contact.savedContact, connectedCase, diff --git a/plugin-hrm-form/src/components/search/CasePreview/index.tsx b/plugin-hrm-form/src/components/search/CasePreview/index.tsx index ff46d29500..56ef6d06c4 100644 --- a/plugin-hrm-form/src/components/search/CasePreview/index.tsx +++ b/plugin-hrm-form/src/components/search/CasePreview/index.tsx @@ -59,7 +59,7 @@ const mapDispatchToProps = (dispatch: Dispatch, { task, currentCase }: OwnP await asyncDispatch(dispatch)(connectToCaseAsyncAction(taskContact.id, currentCase.id)); }, closeModal: () => dispatch(newCloseModalAction(task.taskSid)), - setCaseConnectedToContact: (connectedCase: Case) => dispatch(setCaseConnectedToContact(connectedCase)) + setCaseConnectedToContact: (connectedCase: Case) => dispatch(setCaseConnectedToContact(connectedCase)), }); const connector = connect(mapStateToProps, mapDispatchToProps); diff --git a/plugin-hrm-form/src/states/contacts/actions.ts b/plugin-hrm-form/src/states/contacts/actions.ts index 3c8d6049de..997e1b54ea 100644 --- a/plugin-hrm-form/src/states/contacts/actions.ts +++ b/plugin-hrm-form/src/states/contacts/actions.ts @@ -56,4 +56,4 @@ export const setCallType = (isCallTypeCaller: boolean): t.ContactsActionType => export const setCaseConnectedToContact = (caseConnectedToContact: Case): t.ContactsActionType => ({ type: t.CASE_CONNECTED_TO_CONTACT, caseConnectedToContact, -}); \ No newline at end of file +}); diff --git a/plugin-hrm-form/src/states/contacts/types.ts b/plugin-hrm-form/src/states/contacts/types.ts index b3dc970412..a8b0319882 100644 --- a/plugin-hrm-form/src/states/contacts/types.ts +++ b/plugin-hrm-form/src/states/contacts/types.ts @@ -45,7 +45,7 @@ export const REMOVE_FROM_CASE = 'contact-action/remove-from-case'; export const CONNECT_TO_CASE_ACTION_FULFILLED = `${CONNECT_TO_CASE}_FULFILLED` as const; export const REMOVE_FROM_CASE_ACTION_FULFILLED = `${REMOVE_FROM_CASE}_FULFILLED` as const; export const SET_SAVED_CONTACT = 'contact-action/set-saved-contact'; -export const CASE_CONNECTED_TO_CONTACT = 'CASE_CONNECTED_TO_CONTACT' +export const CASE_CONNECTED_TO_CONTACT = 'CASE_CONNECTED_TO_CONTACT'; export type ContactMetadata = { startMillis: number; @@ -102,7 +102,7 @@ type CheckButtonDataAction = { type CaseConnectedToContactAction = { type: typeof CASE_CONNECTED_TO_CONTACT; caseConnectedToContact: Case; -} +}; export type ContactsActionType = | SaveEndMillisAction