fix lint
This commit is contained in:
parent
3fd5d2497a
commit
bacbe6d783
|
|
@ -60,13 +60,13 @@ const PromptButton: React.FC<{
|
|||
return <button
|
||||
className='prompt-button'
|
||||
onClick={async () => {
|
||||
await navigator.clipboard.writeText(prompt)
|
||||
await navigator.clipboard.writeText(prompt);
|
||||
setCopied(true);
|
||||
setTimeout(() => {
|
||||
setCopied(false);
|
||||
}, 3000);
|
||||
}}>
|
||||
{copied ? <span className='prompt-button-copied'>Copied <icons.copy/></span> : 'Fix with AI'}
|
||||
{copied ? <span className='prompt-button-copied'>Copied <icons.copy/></span> : 'Fix with AI'}
|
||||
</button>;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue