|
|
@@ -6,7 +6,6 @@ import { translate } from '../../../base/i18n/functions';
|
|
6
|
6
|
import { IconGear } from '../../../base/icons/svg';
|
|
7
|
7
|
import AbstractButton, { IProps as AbstractButtonProps } from '../../../base/toolbox/components/AbstractButton';
|
|
8
|
8
|
import { openSettingsDialog } from '../../actions';
|
|
9
|
|
-import { SETTINGS_TABS } from '../../constants';
|
|
10
|
9
|
|
|
11
|
10
|
/**
|
|
12
|
11
|
* The type of the React {@code Component} props of {@link SettingsButton}.
|
|
|
@@ -41,10 +40,10 @@ class SettingsButton extends AbstractButton<IProps> {
|
|
41
|
40
|
* @returns {void}
|
|
42
|
41
|
*/
|
|
43
|
42
|
_handleClick() {
|
|
44
|
|
- const { defaultTab = SETTINGS_TABS.AUDIO, dispatch, isDisplayedOnWelcomePage = false } = this.props;
|
|
|
43
|
+ const { dispatch, isDisplayedOnWelcomePage = false } = this.props;
|
|
45
|
44
|
|
|
46
|
45
|
sendAnalytics(createToolbarEvent('settings'));
|
|
47
|
|
- dispatch(openSettingsDialog(defaultTab, isDisplayedOnWelcomePage));
|
|
|
46
|
+ dispatch(openSettingsDialog(undefined, isDisplayedOnWelcomePage));
|
|
48
|
47
|
}
|
|
49
|
48
|
}
|
|
50
|
49
|
|