disable button if no entries
This commit is contained in:
parent
3656ef152a
commit
5da6dd3d9f
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ const NavigationButton = (props: Props) => {
|
||||||
}}
|
}}
|
||||||
icon={isBackward ? ICONS.ARROW_LEFT : ICONS.ARROW_RIGHT}
|
icon={isBackward ? ICONS.ARROW_LEFT : ICONS.ARROW_RIGHT}
|
||||||
iconSize={18}
|
iconSize={18}
|
||||||
|
disabled={slicedEntries.length === 0}
|
||||||
/>
|
/>
|
||||||
{showHistory && <ul className={'header__navigaiton-dropdown'}>{slicedEntries.map(makeItem)}</ul>}
|
{showHistory && <ul className={'header__navigaiton-dropdown'}>{slicedEntries.map(makeItem)}</ul>}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue