1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-24 22:35:49 -04:00

Extract useSelectState from SelectContext

Closes #8295
This commit is contained in:
Qstick
2023-04-30 20:37:45 -05:00
parent 1336743aca
commit 3e643644cd
10 changed files with 164 additions and 135 deletions
@@ -1,5 +1,5 @@
import React, { SyntheticEvent, 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';
@@ -20,7 +20,7 @@ function MovieIndexPosterSelect(props: MovieIndexPosterSelectProps) {
const shiftKey = nativeEvent.shiftKey;
selectDispatch({
type: SelectActionType.ToggleSelected,
type: 'toggleSelected',
id: movieId,
isSelected: !isSelected,
shiftKey,