renamed buttonNavigation -> navigationButton

This commit is contained in:
Dalton 2020-01-25 15:04:48 -06:00 committed by Sean Yesmunt
parent 0a50a5f6b8
commit a86ff9b42a
4 changed files with 8 additions and 8 deletions

View file

@ -1,3 +0,0 @@
import ButtonNavigation from './view';
export default ButtonNavigation;

View file

@ -11,7 +11,7 @@ import WunderBar from 'component/wunderbar';
import Icon from 'component/common/icon';
import { Menu, MenuList, MenuButton, MenuItem } from '@reach/menu-button';
import Tooltip from 'component/common/tooltip';
import ButtonNavigation from 'component/buttonNavigation';
import NavigationButton from 'component/navigationButton';
// @if TARGET='app'
import { IS_MAC } from 'component/app/view';
// @endif
@ -114,8 +114,8 @@ const Header = (props: Props) => {
{/* @if TARGET='app' */}
{!authHeader && (
<div className="header__navigation-arrows">
<ButtonNavigation isBackward history={history} />
<ButtonNavigation isBackward={false} history={history} />
<NavigationButton isBackward history={history} />
<NavigationButton isBackward={false} history={history} />
</div>
)}
{/* @endif */}

View file

@ -0,0 +1,3 @@
import NavigationButton from './view';
export default NavigationButton;

View file

@ -24,7 +24,7 @@ const sliceEntries = (currentIndex, entries, historyLength, isBackward) => {
return entries.slice(l, r);
};
const ButtonNavigation = (props: Props) => {
const NavigationButton = (props: Props) => {
const { isBackward, history } = props;
const { entries, go } = history;
const currentIndex = history.index;
@ -72,4 +72,4 @@ const ButtonNavigation = (props: Props) => {
</div>
);
};
export default ButtonNavigation;
export default NavigationButton;