disable button if no entries

This commit is contained in:
Dalton 2020-01-27 17:39:04 -06:00 committed by Sean Yesmunt
parent 3656ef152a
commit 5da6dd3d9f

View file

@ -67,6 +67,7 @@ const NavigationButton = (props: Props) => {
}}
icon={isBackward ? ICONS.ARROW_LEFT : ICONS.ARROW_RIGHT}
iconSize={18}
disabled={slicedEntries.length === 0}
/>
{showHistory && <ul className={'header__navigaiton-dropdown'}>{slicedEntries.map(makeItem)}</ul>}
</div>