diff --git a/landing/components/api-method-tabs.tsx b/landing/components/api-method-tabs.tsx index 036bcee7d8..def9c5c1d8 100644 --- a/landing/components/api-method-tabs.tsx +++ b/landing/components/api-method-tabs.tsx @@ -22,7 +22,7 @@ function ApiMethodTabs({ return (
diff --git a/landing/components/api-method.tsx b/landing/components/api-method.tsx index aafee659eb..752568ee82 100644 --- a/landing/components/api-method.tsx +++ b/landing/components/api-method.tsx @@ -183,14 +183,9 @@ export const APIMethod = ({ ); const serverTabContent = ( - <> +
{isClientOnly || isServerOnly ? null : ( - + )} {serverOnlyNote || note ? ( @@ -212,7 +207,7 @@ export const APIMethod = ({ ) : null}
{!isClientOnly ? : null} - +
); if (isExternalOnly) { @@ -234,48 +229,53 @@ export const APIMethod = ({ defaultValue={isServerOnly ? "server" : "client"} className="gap-0 w-full" > - - - + {( + [ + { + value: "client", + label: "Client", + icon: ( + <> + + + + ), + }, + { + value: "server", + label: "Server", + icon: ( + <> + + + + + ), + }, + ] as const + ).map((tab) => ( + - - - - Client - - - - - - - - Server - + + {tab.icon} + + {tab.label} + + ))}