1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-25 22:46:31 -04:00

New: Improve 'Select All' in Library Import

Closes #7909
This commit is contained in:
Mark McDowall
2025-10-25 16:13:31 -07:00
parent 08f0a5a960
commit 910b85f37d
32 changed files with 666 additions and 439 deletions
@@ -7,22 +7,23 @@ import VirtualTableRowCell, {
} from './VirtualTableRowCell';
import styles from './VirtualTableSelectCell.css';
interface VirtualTableSelectCellProps extends VirtualTableRowCellProps {
interface VirtualTableSelectCellProps<T extends number | string = number>
extends VirtualTableRowCellProps {
inputClassName?: string;
id: number | string;
id: T;
isSelected?: boolean;
isDisabled: boolean;
onSelectedChange: (options: SelectStateInputProps) => void;
onSelectedChange: (options: SelectStateInputProps<T>) => void;
}
function VirtualTableSelectCell({
function VirtualTableSelectCell<T extends number | string = number>({
inputClassName = styles.input,
id,
isSelected = false,
isDisabled,
onSelectedChange,
...otherProps
}: VirtualTableSelectCellProps) {
}: VirtualTableSelectCellProps<T>) {
const handleChange = useCallback(
({ value, shiftKey }: CheckInputChanged) => {
onSelectedChange({ id, value, shiftKey });