mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-18 18:59:15 +08:00
chore: remove search bar
This commit is contained in:
parent
be288acf52
commit
ac4a7e5d20
@ -5,12 +5,6 @@ import { NavBar } from "../navbar"
|
||||
import { Menu } from "./menu"
|
||||
import { currentSourcesAtom, goToTopAtom, refetchSourcesAtom } from "~/atoms"
|
||||
|
||||
export function Search() {
|
||||
const { toggle } = useSearchBar()
|
||||
return (
|
||||
<button type="button" className="i-ph:magnifying-glass-duotone btn" onClick={() => toggle()} />
|
||||
)
|
||||
}
|
||||
function GoTop() {
|
||||
const { ok, fn: goToTop } = useAtomValue(goToTopAtom)
|
||||
return (
|
||||
@ -76,7 +70,6 @@ export function Header() {
|
||||
<span className="justify-self-end flex gap-2 items-center text-xl text-primary-600 dark:text-primary">
|
||||
<GoTop />
|
||||
<Refresh />
|
||||
<Search />
|
||||
<Menu />
|
||||
</span>
|
||||
</>
|
||||
|
Loading…
x
Reference in New Issue
Block a user