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.
This commit is contained in:
2026-02-03 15:39:10 +01:00
parent d2e2286627
commit db35a7b0c9

View File

@@ -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);