Skip to content

Commit

Permalink
warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kurund committed Oct 25, 2020
1 parent 921c202 commit a658d94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config/apolloclient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApolloClient, InMemoryCache, createHttpLink, split } from '@apollo/client';
import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client';
import { onError } from '@apollo/link-error';
import { RetryLink } from '@apollo/client/link/retry';
import { TokenRefreshLink } from 'apollo-link-token-refresh';
Expand Down
10 changes: 6 additions & 4 deletions src/containers/Group/GroupList/GroupList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { GET_GROUPS_COUNT, FILTER_GROUPS, GET_GROUPS } from '../../../graphql/qu
import { DELETE_GROUP, UPDATE_GROUP_CONTACTS } from '../../../graphql/mutations/Group';
import styles from './GroupList.module.css';
import { ReactComponent as GroupIcon } from '../../../assets/images/icons/Groups/Dark.svg';
import { ReactComponent as AutomationIcon } from '../../../assets/images/icons/Automations/Selected.svg';
import { ReactComponent as AutomationDarkIcon } from '../../../assets/images/icons/Automations/Dark.svg';
import { ReactComponent as ChatDarkIcon } from '../../../assets/images/icons/Chat/UnselectedDark.svg';
import ChatDarkIconSVG from '../../../assets/images/icons/Chat/UnselectedDark.svg';
Expand Down Expand Up @@ -82,15 +81,18 @@ export const GroupList: React.SFC<GroupListProps> = (props) => {
client,
`${numberDeleted} contact${
numberDeleted === 1 ? '' : 's were'
} removed and ${numberAdded} contact${numberAdded == 1 ? '' : 's were'} added`
} removed and ${numberAdded} contact${numberAdded === 1 ? '' : 's were'} added`
);
} else if (numberDeleted > 0) {
setNotification(
client,
`${numberDeleted} contact${numberDeleted === 1 ? '' : 's were'} removed`
);
} else {
setNotification(client, `${numberAdded} contact${numberAdded == 1 ? '' : 's were'} added`);
setNotification(
client,
`${numberAdded} contact${numberAdded === 1 ? '' : 's were'} added`
);
}
setAddContactsDialogShow(false);
},
Expand Down Expand Up @@ -243,7 +245,7 @@ export const GroupList: React.SFC<GroupListProps> = (props) => {
<Menu
menus={[
{
icon: <ChatDarkIcon className={styles.Icon} />,
icon: <ChatDarkIcon className={styles.Icon} />,
title: 'Send a message',
onClick: () => setSendMessageDialogShow(true),
},
Expand Down

0 comments on commit a658d94

Please sign in to comment.