diff options
author | 2023-05-27 01:32:44 +0530 | |
---|---|---|
committer | 2023-05-27 18:10:24 +0530 | |
commit | b8950dde09cb41eac5dba40ae034abf7a5e6bdb2 (patch) | |
tree | 978c1649cd8fc51adc1253b9934491237d3f9ffc /src/components/services/tabs/TabItem.tsx | |
parent | Upgrade 'pnpm' to '8.5.1' (diff) | |
download | ferdium-app-b8950dde09cb41eac5dba40ae034abf7a5e6bdb2.tar.gz ferdium-app-b8950dde09cb41eac5dba40ae034abf7a5e6bdb2.tar.zst ferdium-app-b8950dde09cb41eac5dba40ae034abf7a5e6bdb2.zip |
update react version to 18.2.0 and it related changes
Diffstat (limited to 'src/components/services/tabs/TabItem.tsx')
-rw-r--r-- | src/components/services/tabs/TabItem.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/services/tabs/TabItem.tsx b/src/components/services/tabs/TabItem.tsx index fae788764..2ed595919 100644 --- a/src/components/services/tabs/TabItem.tsx +++ b/src/components/services/tabs/TabItem.tsx | |||
@@ -1,4 +1,5 @@ | |||
1 | import { app, dialog, Menu } from '@electron/remote'; | 1 | import { app, dialog, Menu } from '@electron/remote'; |
2 | import { noop } from 'lodash'; | ||
2 | import { Component } from 'react'; | 3 | import { Component } from 'react'; |
3 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | 4 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; |
4 | import { inject, observer } from 'mobx-react'; | 5 | import { inject, observer } from 'mobx-react'; |
@@ -6,7 +7,6 @@ import classnames from 'classnames'; | |||
6 | import { SortableElement } from 'react-sortable-hoc'; | 7 | import { SortableElement } from 'react-sortable-hoc'; |
7 | import injectSheet, { WithStylesProps } from 'react-jss'; | 8 | import injectSheet, { WithStylesProps } from 'react-jss'; |
8 | import ms from 'ms'; | 9 | import ms from 'ms'; |
9 | |||
10 | import { autorun, makeObservable, observable, reaction } from 'mobx'; | 10 | import { autorun, makeObservable, observable, reaction } from 'mobx'; |
11 | import { mdiExclamation, mdiVolumeSource } from '@mdi/js'; | 11 | import { mdiExclamation, mdiVolumeSource } from '@mdi/js'; |
12 | import Service from '../../../models/Service'; | 12 | import Service from '../../../models/Service'; |
@@ -348,6 +348,8 @@ class TabItem extends Component<IProps, IState> { | |||
348 | 'is-label-enabled': showServiceNameSetting, | 348 | 'is-label-enabled': showServiceNameSetting, |
349 | })} | 349 | })} |
350 | onClick={clickHandler} | 350 | onClick={clickHandler} |
351 | onKeyDown={noop} | ||
352 | role="presentation" | ||
351 | onContextMenu={() => menu.popup()} | 353 | onContextMenu={() => menu.popup()} |
352 | data-tip={`${service.name} ${ | 354 | data-tip={`${service.name} ${ |
353 | shortcutIndex <= 9 | 355 | shortcutIndex <= 9 |
@@ -407,5 +409,6 @@ class TabItem extends Component<IProps, IState> { | |||
407 | } | 409 | } |
408 | 410 | ||
409 | export default injectIntl( | 411 | export default injectIntl( |
412 | // @ts-ignore | ||
410 | SortableElement(injectSheet(styles, { injectTheme: true })(TabItem)), | 413 | SortableElement(injectSheet(styles, { injectTheme: true })(TabItem)), |
411 | ); | 414 | ); |