aboutsummaryrefslogtreecommitdiffstats
path: root/components/Popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'components/Popup.js')
-rw-r--r--components/Popup.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/components/Popup.js b/components/Popup.js
index 3df11c5..3e5ab1f 100644
--- a/components/Popup.js
+++ b/components/Popup.js
@@ -2,17 +2,17 @@ import React from 'react'
import usePopup from 'hooks/usePopup'
const Popup = () => {
- const {popupData: p} = usePopup()
+ const { popupData: p } = usePopup()
if (!p || !p.content) return null
return (
<div className={`window window--popup${p.error ? ' window--error' : ''}`}>
- <div className="window__content--popup">{p.content}</div>
+ <div className='window__content--popup'>{p.content}</div>
{
(p.yes || p.no) && (
- <div className="window__buttons--popup">
- {[p.no, p.yes].map(a => a && <input key={a.label} className='window__button' type="button" onClick={async () => a.action()} value={a.label} />)}
+ <div className='window__buttons--popup'>
+ {[p.no, p.yes].map(a => a && <input key={a.label} className='window__button' type='button' onClick={async () => a.action()} value={a.label} />)}
</div>
)
}
@@ -21,4 +21,3 @@ const Popup = () => {
}
export default Popup
-