diff options
Diffstat (limited to 'src/components/services/tabs/TabItem.tsx')
-rw-r--r-- | src/components/services/tabs/TabItem.tsx | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/components/services/tabs/TabItem.tsx b/src/components/services/tabs/TabItem.tsx index 804efe8a5..bf193e136 100644 --- a/src/components/services/tabs/TabItem.tsx +++ b/src/components/services/tabs/TabItem.tsx | |||
@@ -1,19 +1,23 @@ | |||
1 | import { app, dialog, Menu } from '@electron/remote'; | 1 | import { Menu, app, dialog } from '@electron/remote'; |
2 | import { mdiExclamation, mdiVolumeSource } from '@mdi/js'; | ||
3 | import classnames from 'classnames'; | ||
2 | import { noop } from 'lodash'; | 4 | import { noop } from 'lodash'; |
3 | import { Component } from 'react'; | 5 | import { autorun, makeObservable, observable, reaction } from 'mobx'; |
4 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | ||
5 | import { inject, observer } from 'mobx-react'; | 6 | import { inject, observer } from 'mobx-react'; |
6 | import classnames from 'classnames'; | ||
7 | import { SortableElement } from 'react-sortable-hoc'; | ||
8 | import injectSheet, { WithStylesProps } from 'react-jss'; | ||
9 | import ms from 'ms'; | 7 | import ms from 'ms'; |
10 | import { autorun, makeObservable, observable, reaction } from 'mobx'; | 8 | import { Component } from 'react'; |
11 | import { mdiExclamation, mdiVolumeSource } from '@mdi/js'; | 9 | import { |
12 | import Service from '../../../models/Service'; | 10 | type WrappedComponentProps, |
11 | defineMessages, | ||
12 | injectIntl, | ||
13 | } from 'react-intl'; | ||
14 | import injectSheet, { type WithStylesProps } from 'react-jss'; | ||
15 | import { SortableElement } from 'react-sortable-hoc'; | ||
16 | import type { Stores } from '../../../@types/stores.types'; | ||
13 | import { altKey, cmdOrCtrlShortcutKey, shiftKey } from '../../../environment'; | 17 | import { altKey, cmdOrCtrlShortcutKey, shiftKey } from '../../../environment'; |
14 | import globalMessages from '../../../i18n/globalMessages'; | 18 | import globalMessages from '../../../i18n/globalMessages'; |
19 | import type Service from '../../../models/Service'; | ||
15 | import Icon from '../../ui/icon'; | 20 | import Icon from '../../ui/icon'; |
16 | import { Stores } from '../../../@types/stores.types'; | ||
17 | import MenuItemConstructorOptions = Electron.MenuItemConstructorOptions; | 21 | import MenuItemConstructorOptions = Electron.MenuItemConstructorOptions; |
18 | import { acceleratorString } from '../../../jsUtils'; | 22 | import { acceleratorString } from '../../../jsUtils'; |
19 | 23 | ||