mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 03:09:14 +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 { Menu } from "./menu"
|
||||||
import { currentSourcesAtom, goToTopAtom, refetchSourcesAtom } from "~/atoms"
|
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() {
|
function GoTop() {
|
||||||
const { ok, fn: goToTop } = useAtomValue(goToTopAtom)
|
const { ok, fn: goToTop } = useAtomValue(goToTopAtom)
|
||||||
return (
|
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">
|
<span className="justify-self-end flex gap-2 items-center text-xl text-primary-600 dark:text-primary">
|
||||||
<GoTop />
|
<GoTop />
|
||||||
<Refresh />
|
<Refresh />
|
||||||
<Search />
|
|
||||||
<Menu />
|
<Menu />
|
||||||
</span>
|
</span>
|
||||||
</>
|
</>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user