mirror of
https://github.com/r-freeman/portfolio.git
synced 2025-04-21 23:54:37 +00:00
Update code component
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 3m16s
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 3m16s
This commit is contained in:
parent
c3b3a0d845
commit
73f9541f14
@ -18,7 +18,7 @@ export function Code({children}: { children: ReactNode }) {
|
||||
return (
|
||||
<pre className="relative" ref={preRef}>
|
||||
<button className="absolute top-0 right-0 m-5" onClick={handleCopy} aria-label="Copy code">
|
||||
{copied ? <CheckIcon className="size-6 text-indigo-500"/> :
|
||||
{copied ? <CheckIcon className="size-6 text-green-500"/> :
|
||||
<CopyIcon className="size-6 text-zinc-400 hover:text-zinc-50"/>}
|
||||
</button>
|
||||
<div className="mt-5 sm:mt-0 pb-5 overflow-auto ">
|
||||
|
Loading…
x
Reference in New Issue
Block a user