File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 11"use client" ;
22
3+ import { MagnifyingGlass } from "@phosphor-icons/react/dist/ssr/MagnifyingGlass" ;
4+ import { Button } from "@pythnetwork/component-library/Button" ;
35import DefaultSearchDialog from "fumadocs-ui/components/dialog/search-default" ;
46import { useState } from "react" ;
57
@@ -8,20 +10,17 @@ export const SearchButton = () => {
810
911 return (
1012 < >
11- < button
13+ < Button
1214 onClick = { ( ) => {
1315 setOpen ( true ) ;
1416 } }
15- style = { {
16- background : "transparent" ,
17- border : "1px solid #ccc" ,
18- padding : "8px 16px" ,
19- borderRadius : "6px" ,
20- cursor : "pointer" ,
21- } }
17+ variant = "outline"
18+ size = "sm"
19+ rounded
20+ beforeIcon = { < MagnifyingGlass size = { 16 } /> }
2221 >
2322 Search
24- </ button >
23+ </ Button >
2524 < DefaultSearchDialog
2625 open = { open }
2726 onOpenChange = { setOpen }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export const baseOptions: BaseLayoutProps = {
88 enabled : true ,
99 } ,
1010 themeSwitch : {
11- enabled : true ,
11+ enabled : false ,
1212 } ,
1313 searchToggle : {
1414 enabled : false ,
You can’t perform that action at this time.
0 commit comments