mirror of
https://github.com/He4eT/tabswitcher.git
synced 2026-05-05 01:17:23 +00:00
pages/search: render results
This commit is contained in:
parent
58bd805ee3
commit
ae2259b2ba
3 changed files with 52 additions and 16 deletions
7
pages/search/modules/dom.js
Normal file
7
pages/search/modules/dom.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
const tabView = (tab) =>
|
||||
`<button class='tab'>${tab.displayName}</button>`
|
||||
|
||||
export const updateSearchResults = (state) => {
|
||||
const container = document.getElementById('searchResults')
|
||||
container.innerHTML = state.results.map(tabView).join('')
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue