add update button

This commit is contained in:
Felix Roos 2022-09-19 22:09:23 +02:00
parent 1da005e811
commit 0134a50ffa

View File

@ -214,6 +214,19 @@ function App() {
<>loading...</>
)}
</button>
<button
onClick={() => {
dirty && activateCode();
pushLog('Code updated! Tip: You can also update the code by pressing ctrl+enter.');
}}
className={cx(
'hover:bg-gray-300',
!isEmbedded ? 'p-2' : 'px-2',
!dirty || !activeCode ? 'opacity-50' : '',
)}
>
🔄 update
</button>
{!isEmbedded && (
<button
className="hover:bg-gray-300 p-2"