format code

This commit is contained in:
Ramon Souza 2021-06-24 16:50:46 -03:00
parent fbfe371b40
commit b7bf014e76
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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 />}