Rewrite PIP state in Typescript (#27645)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Renaud ChaputandClaire authored and GitHub committed 2024-03-27 15:19:33 +00:00
1 parent b016f03637
commit 9fbe8d3a0c
13 files changed
+218 -218

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ export const makeGetStatus = () => {
export const makeGetPictureInPicture = () => {
return createSelector([
(state, { id }) => state.get('picture_in_picture').statusId === id,
(state, { id }) => state.picture_in_picture.statusId === id,
(state) => state.getIn(['meta', 'layout']) !== 'mobile',
], (inUse, available) => ImmutableMap({
inUse: inUse && available,