Use ReadonlyArrays in conversation model and redux
This commit is contained in:
parent
ecbf84638d
commit
dec23725e5
55 changed files with 173 additions and 162 deletions
|
@ -33,7 +33,7 @@ export function SmartLightbox(): JSX.Element | null {
|
|||
|
||||
const isShowingLightbox = useSelector<StateType, boolean>(shouldShowLightbox);
|
||||
const isViewOnce = useSelector<StateType, boolean>(getIsViewOnce);
|
||||
const media = useSelector<StateType, Array<MediaItemType>>(getMedia);
|
||||
const media = useSelector<StateType, ReadonlyArray<MediaItemType>>(getMedia);
|
||||
const selectedIndex = useSelector<StateType, number>(getSelectedIndex);
|
||||
|
||||
if (!isShowingLightbox) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue