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:
Saúl Ibarra Corretgé 2018-06-21 07:53:18 +02:00
parent be44cb9496
commit f1846bd4cb
4 changed files with 12 additions and 14 deletions

View file

@ -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. * Initializes a new {@code HelpAction} instance.
* *
@ -104,5 +104,3 @@ class HelpAction extends Component< *, State> {
); );
} }
} }
export default HelpAction;

View file

@ -6,10 +6,10 @@ import Navigation, { AkGlobalItem } from '@atlaskit/navigation';
import React, { Component } from 'react'; import React, { Component } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { SettingsAction, SettingsDrawer } from '../../settings'; import { SettingsButton, SettingsDrawer } from '../../settings';
import { isElectronMac } from '../../utils'; import { isElectronMac } from '../../utils';
import HelpAction from './HelpAction'; import HelpButton from './HelpButton';
import Logo from './Logo'; import Logo from './Logo';
/** /**
@ -24,7 +24,7 @@ class Navbar extends Component<*> {
_getPrimaryActions() { _getPrimaryActions() {
return [ return [
<AkGlobalItem key = { 0 }> <AkGlobalItem key = { 0 }>
<SettingsAction /> <SettingsButton />
</AkGlobalItem> </AkGlobalItem>
]; ];
} }
@ -37,7 +37,7 @@ class Navbar extends Component<*> {
_getSecondaryActions() { _getSecondaryActions() {
return [ return [
<AkGlobalItem key = { 0 }> <AkGlobalItem key = { 0 }>
<HelpAction /> <HelpButton />
</AkGlobalItem> </AkGlobalItem>
]; ];
} }

View file

@ -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 * @inheritdoc
*/ */
@ -48,7 +48,7 @@ class SettingsAction extends Component<Props, *> {
_onIconClick: (*) => void; _onIconClick: (*) => void;
/** /**
* Open Settings drawer when SettingsAction is clicked. * Open Settings drawer when SettingButton is clicked.
* *
* @returns {void} * @returns {void}
*/ */
@ -57,4 +57,4 @@ class SettingsAction extends Component<Props, *> {
} }
} }
export default connect()(SettingsAction); export default connect()(SettingButton);

View file

@ -1,2 +1,2 @@
export { default as SettingsAction } from './SettingsAction'; export { default as SettingsButton } from './SettingsButton';
export { default as SettingsDrawer } from './SettingsDrawer'; export { default as SettingsDrawer } from './SettingsDrawer';