0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-21 00:42:48 +00:00
This commit is contained in:
Gazook89
2024-11-08 21:56:45 -06:00
parent 2e8368d08c
commit b7b1981bde

View File

@@ -1,5 +1,5 @@
// Dialog box, for popups and modal blocking messages
import React from "react";
import React from 'react';
const { useRef, useEffect } = React;
function Dialog({ dismisskeys = [], closeText = 'Close', blocking = false, ...rest }) {
@@ -12,7 +12,7 @@ function Dialog({ dismisskeys = [], closeText = 'Close', blocking = false, ...re
}, [dialogRef.current, dismisskeys]);
const dismiss = ()=>{
dismisskeys.forEach(key => {
dismisskeys.forEach((key)=>{
if(key) {
localStorage.setItem(key, 'true');
}