Skip to content

Commit

Permalink
ch: fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
acedeywin committed Dec 13, 2023
1 parent c1e01aa commit f31cb45
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions plugin-hrm-form/src/components/case/CaseHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ const CaseHome: React.FC<Props> = ({
isConnectedToTaskContact={isConnectedToTaskContact}
onClickConnectToTaskContact={() => {
connectCaseToTaskContact(taskContact, connectedCaseState.connectedCase);
setCaseConnectedToContact(connectedCaseState.connectedCase)
setCaseConnectedToContact(connectedCaseState.connectedCase);
closeModal();
}}
color="black"
Expand Down Expand Up @@ -357,7 +357,7 @@ const mapDispatchToProps = (dispatch: Dispatch<any>, { 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Props = OwnProps & ReturnType<typeof mapStateToProps> & ReturnType<typeof m
const mapStateToProps = (state: RootState, { taskId }: OwnProps) => {
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const mapDispatchToProps = (dispatch: Dispatch<any>, { 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);
Expand Down
2 changes: 1 addition & 1 deletion plugin-hrm-form/src/states/contacts/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
});
4 changes: 2 additions & 2 deletions plugin-hrm-form/src/states/contacts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -102,7 +102,7 @@ type CheckButtonDataAction = {
type CaseConnectedToContactAction = {
type: typeof CASE_CONNECTED_TO_CONTACT;
caseConnectedToContact: Case;
}
};

export type ContactsActionType =
| SaveEndMillisAction
Expand Down

0 comments on commit f31cb45

Please sign in to comment.