mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
Apps and tags are suggested in global search.
This commit is contained in:
parent
d042b06e8b
commit
fdfb8797fe
7 changed files with 68 additions and 15 deletions
|
|
@ -158,7 +158,7 @@ export function DashboardPage() {
|
|||
const navigate = useNavigate();
|
||||
|
||||
const {searchStr, setSearchStr, activeTags} = useSearch();
|
||||
const {suggestions} = useSearchSuggestions();
|
||||
const {suggestions, handleResultSelect} = useSearchSuggestions();
|
||||
const {status} = useContext(StatusContext);
|
||||
|
||||
let title = 'Dashboard';
|
||||
|
|
@ -198,6 +198,7 @@ export function DashboardPage() {
|
|||
onClear={() => navigate('/')}
|
||||
style={{marginBottom: '2em'}}
|
||||
results={suggestions}
|
||||
handleResultSelect={handleResultSelect}
|
||||
/>
|
||||
</Grid.Column>
|
||||
<Grid.Column width={3} textAlign='right'>
|
||||
|
|
@ -220,6 +221,7 @@ export function DashboardPage() {
|
|||
onClear={() => navigate('/')}
|
||||
style={{marginBottom: '2em'}}
|
||||
results={suggestions}
|
||||
handleResultSelect={handleResultSelect}
|
||||
/>
|
||||
</Grid.Column>
|
||||
<Grid.Column textAlign='right' width={2}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue