format code
This commit is contained in:
parent
fbfe371b40
commit
b7bf014e76
@ -55,7 +55,7 @@ const FullscreenButtonComponent = ({
|
|||||||
if (isIphone) return null;
|
if (isIphone) return null;
|
||||||
|
|
||||||
const formattedLabel = (isFullscreen) => {
|
const formattedLabel = (isFullscreen) => {
|
||||||
return(isFullscreen ?
|
return (isFullscreen ?
|
||||||
intl.formatMessage(
|
intl.formatMessage(
|
||||||
intlMessages.fullscreenUndoButton,
|
intlMessages.fullscreenUndoButton,
|
||||||
({ 0: elementName || '' }),
|
({ 0: elementName || '' }),
|
||||||
@ -75,9 +75,9 @@ const FullscreenButtonComponent = ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
if(layoutManagerLoaded === 'legacy'){
|
if (layoutManagerLoaded === 'legacy') {
|
||||||
handleToggleFullScreen(fullscreenRef);
|
handleToggleFullScreen(fullscreenRef);
|
||||||
}else{
|
} else {
|
||||||
newLayoutContextDispatch({
|
newLayoutContextDispatch({
|
||||||
type: ACTIONS.SET_PRESENTATION_IS_FULLSCREEN,
|
type: ACTIONS.SET_PRESENTATION_IS_FULLSCREEN,
|
||||||
value: !isFullscreen,
|
value: !isFullscreen,
|
||||||
|
@ -869,7 +869,7 @@ class Presentation extends PureComponent {
|
|||||||
width: layoutLoaded === 'new' ? presentationBounds.width : undefined,
|
width: layoutLoaded === 'new' ? presentationBounds.width : undefined,
|
||||||
height: layoutLoaded === 'new' ? presentationBounds.height : undefined,
|
height: layoutLoaded === 'new' ? presentationBounds.height : undefined,
|
||||||
zIndex: layoutLoaded === 'new' && fullscreenContext ? presentationBounds.zIndex : undefined,
|
zIndex: layoutLoaded === 'new' && fullscreenContext ? presentationBounds.zIndex : undefined,
|
||||||
backgroundColor: layoutLoaded === 'new' ? '#06172A': undefined,
|
backgroundColor: layoutLoaded === 'new' ? '#06172A' : undefined,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{isFullscreen && <PollingContainer />}
|
{isFullscreen && <PollingContainer />}
|
||||||
|
Loading…
Reference in New Issue
Block a user