mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-13 21:42:45 +00:00
Remove dismissKeys check before displaying dialog
This commit is contained in:
@@ -6,10 +6,8 @@ function Dialog({ dismisskeys = [], closeText = 'Close', blocking = false, ...re
|
|||||||
const dialogRef = useRef(null);
|
const dialogRef = useRef(null);
|
||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
if(dismisskeys.length !== 0) {
|
blocking ? dialogRef.current?.showModal() : dialogRef.current?.show();
|
||||||
blocking ? dialogRef.current?.showModal() : dialogRef.current?.show();
|
}, []);
|
||||||
}
|
|
||||||
}, [dialogRef.current, dismisskeys]);
|
|
||||||
|
|
||||||
const dismiss = ()=>{
|
const dismiss = ()=>{
|
||||||
dismisskeys.forEach((key)=>{
|
dismisskeys.forEach((key)=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user