[userRiview] 패널 오픈시 관련 처리
- 패널 오픈시 detailpanel위로 playerpanel이 잡히는 문제 처리 건으로 playerpanel poppanel처리.
This commit is contained in:
@@ -1,10 +1,24 @@
|
||||
import React, { useCallback, useEffect } from 'react';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import Spottable from '@enact/spotlight/Spottable';
|
||||
import React, {
|
||||
useCallback,
|
||||
useEffect,
|
||||
} from 'react';
|
||||
|
||||
import {
|
||||
useDispatch,
|
||||
useSelector,
|
||||
} from 'react-redux';
|
||||
|
||||
import Spotlight from '@enact/spotlight';
|
||||
import { pushPanel } from '../../actions/panelActions';
|
||||
import { panel_names } from '../../utils/Config';
|
||||
import Spottable from '@enact/spotlight/Spottable';
|
||||
|
||||
import { finishMediaPreview } from '../../actions/mediaActions';
|
||||
import {
|
||||
popPanel,
|
||||
pushPanel,
|
||||
} from '../../actions/panelActions';
|
||||
import { clearAllVideoTimers } from '../../actions/playActions';
|
||||
import useReviews, { REVIEW_VERSION } from '../../hooks/useReviews/useReviews';
|
||||
import { panel_names } from '../../utils/Config';
|
||||
import css from './ShowUserReviews.module.less';
|
||||
|
||||
const SpottableComponent = Spottable('div');
|
||||
@@ -29,6 +43,8 @@ const ShowUserReviews = ({ hasVideo, launchedFromPlayer, onFocus, onBlur }) => {
|
||||
statsAvgRating: stats?.averageRating,
|
||||
statsTotalReviews: stats?.totalReviews
|
||||
});
|
||||
|
||||
dispatch(popPanel(panel_names.PLAYER_PANEL)); // PlayerPanel 제거
|
||||
|
||||
dispatch(
|
||||
pushPanel({
|
||||
|
||||
Reference in New Issue
Block a user