diff --git a/src/interface/pages/Shortcuts.tsx b/src/interface/pages/Shortcuts.tsx index 56901470..167ecd82 100644 --- a/src/interface/pages/Shortcuts.tsx +++ b/src/interface/pages/Shortcuts.tsx @@ -1,4 +1,4 @@ -import { useState } from "react"; +import { useState, memo } from "react"; import Switch from "../components/Switch"; import { useSettingsContext } from "../SettingsContext"; import { motion, AnimatePresence } from "framer-motion"; @@ -70,13 +70,13 @@ function Shortcuts() {
- {isFormVisible ? ( - + + {isFormVisible &&
-
- ) : ( - + {!isFormVisible && ( + )}
@@ -154,4 +151,4 @@ function Shortcuts() { ); } -export default Shortcuts; \ No newline at end of file +export default memo(Shortcuts); \ No newline at end of file