Rename XyzAction components to XyzButton
The term "action" is quite overloaded since we use redux, so let's call it "button" since that's how it behaves.
This commit is contained in:
parent
be44cb9496
commit
f1846bd4cb
|
@ -17,9 +17,9 @@ type State = {
|
|||
};
|
||||
|
||||
/**
|
||||
* Help Action for Navigation Bar.
|
||||
* Help button for Navigation Bar.
|
||||
*/
|
||||
class HelpAction extends Component< *, State> {
|
||||
export default class HelpButton extends Component< *, State> {
|
||||
/**
|
||||
* Initializes a new {@code HelpAction} instance.
|
||||
*
|
||||
|
@ -104,5 +104,3 @@ class HelpAction extends Component< *, State> {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default HelpAction;
|
|
@ -6,10 +6,10 @@ import Navigation, { AkGlobalItem } from '@atlaskit/navigation';
|
|||
import React, { Component } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { SettingsAction, SettingsDrawer } from '../../settings';
|
||||
import { SettingsButton, SettingsDrawer } from '../../settings';
|
||||
import { isElectronMac } from '../../utils';
|
||||
|
||||
import HelpAction from './HelpAction';
|
||||
import HelpButton from './HelpButton';
|
||||
import Logo from './Logo';
|
||||
|
||||
/**
|
||||
|
@ -24,7 +24,7 @@ class Navbar extends Component<*> {
|
|||
_getPrimaryActions() {
|
||||
return [
|
||||
<AkGlobalItem key = { 0 }>
|
||||
<SettingsAction />
|
||||
<SettingsButton />
|
||||
</AkGlobalItem>
|
||||
];
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ class Navbar extends Component<*> {
|
|||
_getSecondaryActions() {
|
||||
return [
|
||||
<AkGlobalItem key = { 0 }>
|
||||
<HelpAction />
|
||||
<HelpButton />
|
||||
</AkGlobalItem>
|
||||
];
|
||||
}
|
||||
|
|
|
@ -19,11 +19,11 @@ type Props = {
|
|||
};
|
||||
|
||||
/**
|
||||
* Setttings Action for Navigation Bar.
|
||||
* Setttings button for Navigation Bar.
|
||||
*/
|
||||
class SettingsAction extends Component<Props, *> {
|
||||
class SettingButton extends Component<Props, *> {
|
||||
/**
|
||||
* Initializes a new {@code SettingsAction} instance.
|
||||
* Initializes a new {@code SettingButton} instance.
|
||||
*
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
@ -48,7 +48,7 @@ class SettingsAction extends Component<Props, *> {
|
|||
_onIconClick: (*) => void;
|
||||
|
||||
/**
|
||||
* Open Settings drawer when SettingsAction is clicked.
|
||||
* Open Settings drawer when SettingButton is clicked.
|
||||
*
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -57,4 +57,4 @@ class SettingsAction extends Component<Props, *> {
|
|||
}
|
||||
}
|
||||
|
||||
export default connect()(SettingsAction);
|
||||
export default connect()(SettingButton);
|
|
@ -1,2 +1,2 @@
|
|||
export { default as SettingsAction } from './SettingsAction';
|
||||
export { default as SettingsButton } from './SettingsButton';
|
||||
export { default as SettingsDrawer } from './SettingsDrawer';
|
||||
|
|
Loading…
Reference in New Issue