add reset_all and undo buttons to error boundary. no styling
This commit is contained in:
parent
00953e9189
commit
9bcfa4f39b
10 changed files with 93 additions and 28 deletions
10
sites/shared/components/error/reset-buttons.js
Normal file
10
sites/shared/components/error/reset-buttons.js
Normal 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>
|
||||
</>
|
||||
)}
|
Loading…
Add table
Add a link
Reference in a new issue