1
0
Fork 0

add reset_all and undo buttons to error boundary. no styling

This commit is contained in:
Enoch Riese 2022-07-12 17:32:47 -05:00
parent 00953e9189
commit 9bcfa4f39b
10 changed files with 93 additions and 28 deletions

View file

@ -0,0 +1,10 @@
import { useTranslation } from 'next-i18next'
export default function ({resetGist, undoGist}) {
const {t} = useTranslation(['app'])
return (<>
<button className="btn btn-primary" onClick={undoGist}>{t('undo')}</button>
<button className="btn btn-primary" onClick={resetGist}>{t('reset_all')}</button>
</>
)}