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