Compare commits
No commits in common. "f25ad2d6a78cc2e4a7e3120a14e25eb4888c6388" and "712887d86e75b249ee32dfb87d6001ecba6a9f7b" have entirely different histories.
f25ad2d6a7
...
712887d86e
2 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ const customPortableTextComponents: PortableTextComponents = {
|
|||
const language = value.language || "none";
|
||||
const grammar = Prism.languages[language];
|
||||
|
||||
if (language != "none" && !grammar) {
|
||||
if (!grammar) {
|
||||
console.error(`No grammar found for language: "${language}"`);
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ export default function CopyButton({ code }: { code: string }) {
|
|||
return (
|
||||
<Button
|
||||
onClick={copyCode}
|
||||
className="absolute top-2 right-2 bg-accent hover:bg-muted text-black dark:text-white p-2 rounded"
|
||||
className="absolute top-2 right-2 bg-accent hover:bg-muted p-2 rounded"
|
||||
size={"icon"}
|
||||
>
|
||||
{copied ? <Check className="w-5 h-5" /> : <Copy className="w-5 h-5" />}
|
||||
|
|
Loading…
Reference in a new issue