Skip to content

Commit

Permalink
chore(front): remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Oct 7, 2024
1 parent bb59502 commit 372b234
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { Cache, CacheKey } from '@/lib/storage';

import { CacheItem } from './CacheItem';
import { CheckBoxControls } from './CheckBoxControls';
import { useCheckBoxState } from './useCheckBoxState'; // カスタムフックのインポート
import { useCheckBoxState } from './useCheckBoxState';

import type { Dispatch, ReactNode, SetStateAction } from 'react';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { type Cache, PUB_CACHE_KEYS } from '@/lib/storage';

export const useCheckBoxState = (cacheItems: Cache) => {
const [isAllChecked, setIsAllChecked] = useState(false);
const [isPubAllChecked, setIsPublicAllChecked] = useState(false); // "isPubAllChecked"を"isPublicAllChecked"に変更
const [checked, setSelectedItems] = useState<readonly (keyof Cache)[]>([]); // "checked"を"selectedItems"に変更
const [isPubAllChecked, setIsPublicAllChecked] = useState(false);
const [checked, setSelectedItems] = useState<readonly (keyof Cache)[]>([]);

const handleToggleItem = (selectedKey: keyof Cache) => () => {
setSelectedItems((prev) => {
Expand Down

0 comments on commit 372b234

Please sign in to comment.