docs: remove copy button from disabled code blocks (#4516)

This commit is contained in:
KinfeMichael Tariku
2025-09-08 19:15:49 +03:00
committed by GitHub
parent a7eaa049e4
commit 6e60de4205
2 changed files with 12 additions and 1 deletions

View File

@@ -144,6 +144,7 @@ export const APIMethod = ({
noResult ? "" : `const ${resultVariable} = `
}await auth.api.${functionName}(${serverBody});${code_suffix}`}
lang="ts"
allowCopy={!isClientOnly}
/>
);
@@ -243,6 +244,7 @@ export const APIMethod = ({
}, error } = `
}await authClient.${authClientMethodPath}(${clientBody});${code_suffix}`}
lang="ts"
allowCopy={!isServerOnly}
/>
{isServerOnly ? (
<div className="flex absolute inset-0 justify-center items-center w-full h-full rounded-lg border backdrop-brightness-50 backdrop-blur-xs border-border">