Skip to content

Commit f42cc14

Browse files
committed
fix: linter about shadowed variables
1 parent a1c67ca commit f42cc14

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

web/src/components/CasesDisplay/Search.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ const Search: React.FC = () => {
4646
const { data: courtTreeData } = useCourtTree();
4747
const items = useMemo(() => {
4848
if (!isUndefined(courtTreeData)) {
49-
const items = [rootCourtToItems(courtTreeData.court!, "id")];
50-
items.push({ label: "All Courts", value: "all" });
51-
return items;
49+
const courts = [rootCourtToItems(courtTreeData.court!, "id")];
50+
courts.push({ label: "All Courts", value: "all" });
51+
return courts;
5252
}
5353
return undefined;
5454
}, [courtTreeData]);

web/src/context/IsListProvider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const Context = createContext<IIsListProvider>({
1616
const IsListProvider: React.FC<{ children?: React.ReactNode }> = ({ children }) => {
1717
const [isListStorage, setIsListStorage] = useLocalStorage("isList", false);
1818
const [isList, setIsListState] = useToggle(isListStorage ?? false);
19-
const setIsList = (value: boolean) => {
20-
setIsListState(value);
21-
setIsListStorage(value);
19+
const setIsList = (toggle: boolean) => {
20+
setIsListState(toggle);
21+
setIsListStorage(toggle);
2222
};
2323

2424
const value = {

0 commit comments

Comments
 (0)