renamed buttonNavigation -> navigationButton
This commit is contained in:
parent
0a50a5f6b8
commit
a86ff9b42a
4 changed files with 8 additions and 8 deletions
|
@ -1,3 +0,0 @@
|
|||
import ButtonNavigation from './view';
|
||||
|
||||
export default ButtonNavigation;
|
|
@ -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 */}
|
||||
|
|
3
ui/component/navigationButton/index.js
Normal file
3
ui/component/navigationButton/index.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import NavigationButton from './view';
|
||||
|
||||
export default NavigationButton;
|
|
@ -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;
|
Loading…
Add table
Reference in a new issue