From db35a7b0c9dd5c90fcb70782dea4da7fab664217 Mon Sep 17 00:00:00 2001 From: nessi Date: Tue, 3 Feb 2026 15:39:10 +0100 Subject: [PATCH] Refactor chip state variable names for consistency Renamed state variables `chipPickOpen` and `chipPickEntry` to `chipOpen` and `chipEntry`. This change improves naming consistency across the component, simplifying readability and maintenance. --- frontend/src/App.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index e6b2002..1c7bb14 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -3,8 +3,6 @@ import React, { useEffect, useState } from "react"; const API = "/api"; const CHIP_LIST = ["AL", "JG", "JN", "SN", "TL"]; -const [chipOpen, setChipOpen] = useState(false); -const [chipEntry, setChipEntry] = useState(null); async function api(path, opts = {}) { const res = await fetch(API + path, { @@ -208,8 +206,8 @@ export default function App() { const [sheet, setSheet] = useState(null); const [pulseId, setPulseId] = useState(null); - const [chipPickOpen, setChipPickOpen] = useState(false); - const [chipPickEntry, setChipPickEntry] = useState(null); + const [chipOpen, setChipOpen] = useState(false); + const [chipEntry, setChipEntry] = useState(null); const [helpOpen, setHelpOpen] = useState(false);