mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
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 Icon from 'component/common/icon';
|
||||||
import { Menu, MenuList, MenuButton, MenuItem } from '@reach/menu-button';
|
import { Menu, MenuList, MenuButton, MenuItem } from '@reach/menu-button';
|
||||||
import Tooltip from 'component/common/tooltip';
|
import Tooltip from 'component/common/tooltip';
|
||||||
import ButtonNavigation from 'component/buttonNavigation';
|
import NavigationButton from 'component/navigationButton';
|
||||||
// @if TARGET='app'
|
// @if TARGET='app'
|
||||||
import { IS_MAC } from 'component/app/view';
|
import { IS_MAC } from 'component/app/view';
|
||||||
// @endif
|
// @endif
|
||||||
|
@ -114,8 +114,8 @@ const Header = (props: Props) => {
|
||||||
{/* @if TARGET='app' */}
|
{/* @if TARGET='app' */}
|
||||||
{!authHeader && (
|
{!authHeader && (
|
||||||
<div className="header__navigation-arrows">
|
<div className="header__navigation-arrows">
|
||||||
<ButtonNavigation isBackward history={history} />
|
<NavigationButton isBackward history={history} />
|
||||||
<ButtonNavigation isBackward={false} history={history} />
|
<NavigationButton isBackward={false} history={history} />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{/* @endif */}
|
{/* @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);
|
return entries.slice(l, r);
|
||||||
};
|
};
|
||||||
|
|
||||||
const ButtonNavigation = (props: Props) => {
|
const NavigationButton = (props: Props) => {
|
||||||
const { isBackward, history } = props;
|
const { isBackward, history } = props;
|
||||||
const { entries, go } = history;
|
const { entries, go } = history;
|
||||||
const currentIndex = history.index;
|
const currentIndex = history.index;
|
||||||
|
@ -72,4 +72,4 @@ const ButtonNavigation = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
export default ButtonNavigation;
|
export default NavigationButton;
|
Loading…
Add table
Reference in a new issue