disable arrow buttons if there's no results

This commit is contained in:
Evan Simkowitz 2024-12-29 21:23:53 -05:00
parent b0ed9d932a
commit 133e351fb7
No known key found for this signature in database

View File

@ -115,6 +115,7 @@ const SearchComponent = ({
elemtype: "iconbutton",
icon: "chevron-up",
title: "Previous Result (Shift+Enter)",
disabled: numResults === 0,
click: onPrevWrapper,
};
@ -122,6 +123,7 @@ const SearchComponent = ({
elemtype: "iconbutton",
icon: "chevron-down",
title: "Next Result (Enter)",
disabled: numResults === 0,
click: onNextWrapper,
};