mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 12:27:44 +00:00
docs: remove copy button from disabled code blocks (#4516)
This commit is contained in:
committed by
GitHub
parent
a7eaa049e4
commit
6e60de4205
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user