From 999a96b5ce1eacf7744596d2784055543f62127d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Tue, 22 Oct 2024 21:46:57 +0200 Subject: [PATCH] "Rename `dismissKeys` to `dismisskeys` in Dialog component and its usage" --- client/components/dialog.jsx | 8 ++++---- .../brewRenderer/notificationPopup/notificationPopup.jsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/components/dialog.jsx b/client/components/dialog.jsx index fcbab227f..9e88afa33 100644 --- a/client/components/dialog.jsx +++ b/client/components/dialog.jsx @@ -2,17 +2,17 @@ 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(()=>{ - if (dismissKeys.length !== 0) { + if (dismisskeys.length !== 0) { blocking ? dialogRef.current?.showModal() : dialogRef.current?.show(); } - }, [dialogRef.current, dismissKeys]); + }, [dialogRef.current, dismisskeys]); const dismiss = () => { - dismissKeys.forEach(key => { + dismisskeys.forEach(key => { if (key) { localStorage.setItem(key, 'true'); } diff --git a/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx b/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx index 3ff76332a..74da4fa7d 100644 --- a/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx +++ b/client/homebrew/brewRenderer/notificationPopup/notificationPopup.jsx @@ -53,7 +53,7 @@ const NotificationPopup = ()=>{ )) }; - return + return

Notice