From d963fe65c1a582d29063c905fe3ac753da6d2fa9 Mon Sep 17 00:00:00 2001 From: Vishnu Sreekumaran Nair <200557136@student.georgianc.on.ca> Date: Wed, 7 May 2025 13:53:45 -0400 Subject: [PATCH] add handler function to reset api key --- client/src/Pages/Settings/index.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/Pages/Settings/index.jsx b/client/src/Pages/Settings/index.jsx index 77ce770bd..834d7d4b6 100644 --- a/client/src/Pages/Settings/index.jsx +++ b/client/src/Pages/Settings/index.jsx @@ -215,6 +215,14 @@ const Settings = () => { } }; + const handleResetApiKey = () => { + setIsApiKeySet(false); + setForm((prev) => ({ + ...prev, + pagespeedApiKey: "", + })); + }; + const languages = Object.keys(i18n.options.resources || {}); return (