mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-21 23:16:54 +00:00
give dismisskeys a default
This commit is contained in:
1 parent
d0cf6eebbb
commit
f7dfedcd44
1 file changed
+1
-1
@@ -2,7 +2,7 @@
|
||||
import React from "react";
|
||||
const { useRef, useEffect } = React;
|
||||
|
||||
function Dialog({ dismisskeys, closeText = 'Close', blocking = false, ...rest }) {
|
||||
function Dialog({ dismisskeys = [], closeText = 'Close', blocking = false, ...rest }) {
|
||||
const dialogRef = useRef(null);
|
||||
|
||||
useEffect(()=>{
|
||||
|
||||
Reference in new issue
Block a user