Compare commits

..

No commits in common. "f25ad2d6a78cc2e4a7e3120a14e25eb4888c6388" and "712887d86e75b249ee32dfb87d6001ecba6a9f7b" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,7 @@ const customPortableTextComponents: PortableTextComponents = {
const language = value.language || "none"; const language = value.language || "none";
const grammar = Prism.languages[language]; const grammar = Prism.languages[language];
if (language != "none" && !grammar) { if (!grammar) {
console.error(`No grammar found for language: "${language}"`); console.error(`No grammar found for language: "${language}"`);
} }

View file

@ -20,7 +20,7 @@ export default function CopyButton({ code }: { code: string }) {
return ( return (
<Button <Button
onClick={copyCode} 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"} size={"icon"}
> >
{copied ? <Check className="w-5 h-5" /> : <Copy className="w-5 h-5" />} {copied ? <Check className="w-5 h-5" /> : <Copy className="w-5 h-5" />}