Skip to content

Commit 1924ba6

Browse files
committed
requested changes
1 parent 30b083d commit 1924ba6

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

apps/developer-hub/src/components/search-button.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"use client";
22

3+
import { MagnifyingGlass } from "@phosphor-icons/react/dist/ssr/MagnifyingGlass";
4+
import { Button } from "@pythnetwork/component-library/Button";
35
import DefaultSearchDialog from "fumadocs-ui/components/dialog/search-default";
46
import { 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}

apps/developer-hub/src/config/layout.config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)