From 8219ae33c3510f88785b7d7d5ecbca59e65be0a6 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Thu, 28 Mar 2024 06:57:25 +1100 Subject: [PATCH] clean up shortcuts formatting style --- src/interface/pages/Shortcuts.tsx | 33 ++++++++++++++----------------- 1 file changed, 15 insertions(+), 18 deletions(-) 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