Skip to content

Commit

Permalink
chore: clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliano176 committed Mar 18, 2022
1 parent b4a22d1 commit a17247f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/network/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/

import { find, forEach, map } from 'lodash';
import { find, map } from 'lodash';
import { goToLogin } from './go-to-login';
import {
Account,
Expand Down
8 changes: 2 additions & 6 deletions src/utility-bar/bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SHELL_APP_ID, UtilityView } from '../../types';
import { useUtilityViews } from './utils';
import { logout } from '../network/logout';
import { useContextBridge } from '../store/context-bridge';
import { useAccountStore } from '../store/account';
import { noOp } from '../network/fetch';

const UtilityBarItem: FC<{ view: UtilityView }> = ({ view }) => {
const { mode, setMode, current, setCurrent } = useUtilityBarStore();
Expand Down Expand Up @@ -54,11 +54,7 @@ export const ShellUtilityBar: FC = () => {
{
id: 'update',
label: t('label.update_view', 'Update view'),
click: (): void => {
useAccountStore.getState().soapFetch(SHELL_APP_ID)<{ _jsns: string }, any>('NoOp', {
_jsns: 'urn:zimbraMail'
});
},
click: (): void => noOp(),
icon: 'Refresh'
},
{
Expand Down

0 comments on commit a17247f

Please sign in to comment.