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