1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

Extract useSelectState from SelectContext

This commit is contained in:
Mark McDowall
2023-03-24 17:41:17 -07:00
parent 2020e074db
commit 032d9a720c
10 changed files with 164 additions and 135 deletions
@@ -1,5 +1,5 @@
import React, { useCallback } from 'react';
import { SelectActionType, useSelect } from 'App/SelectContext';
import { useSelect } from 'App/SelectContext';
import Icon from 'Components/Icon';
import Link from 'Components/Link/Link';
import { icons } from 'Helpers/Props';
@@ -19,7 +19,7 @@ function SeriesIndexPosterSelect(props: SeriesIndexPosterSelectProps) {
const shiftKey = event.nativeEvent.shiftKey;
selectDispatch({
type: SelectActionType.ToggleSelected,
type: 'toggleSelected',
id: seriesId,
isSelected: !isSelected,
shiftKey,