Fixes display progress images select typing

This commit is contained in:
psychedelicious 2022-11-02 21:27:43 +11:00 committed by Lincoln Stein
parent 0fda612f3f
commit ccf8593501

View File

@ -18,6 +18,7 @@ import { ChangeEvent, cloneElement, ReactElement } from 'react';
import { RootState, useAppDispatch, useAppSelector } from '../../../app/store'; import { RootState, useAppDispatch, useAppSelector } from '../../../app/store';
import { persistor } from '../../../main'; import { persistor } from '../../../main';
import { import {
InProgressImageType,
setShouldConfirmOnDelete, setShouldConfirmOnDelete,
setShouldDisplayGuides, setShouldDisplayGuides,
setShouldDisplayInProgressType, setShouldDisplayInProgressType,
@ -114,7 +115,11 @@ const SettingsModal = ({ children }: SettingsModalProps) => {
validValues={IN_PROGRESS_IMAGE_TYPES} validValues={IN_PROGRESS_IMAGE_TYPES}
value={shouldDisplayInProgressType} value={shouldDisplayInProgressType}
onChange={(e: ChangeEvent<HTMLSelectElement>) => onChange={(e: ChangeEvent<HTMLSelectElement>) =>
dispatch(setShouldDisplayInProgressType(e.target.value)) dispatch(
setShouldDisplayInProgressType(
e.target.value as InProgressImageType
)
)
} }
/> />