mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 21:03:29 +00:00
refactor: create separation between editor wrapper and contents
This commit is contained in:
committed by
Carlos Valente
parent
1d7ee163a0
commit
972f9e35fd
@@ -0,0 +1,3 @@
|
||||
.content {
|
||||
padding-top: $panel-top-padding;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { memo } from 'react';
|
||||
|
||||
import { CornerExtract } from '../../../common/components/editor-utils/EditorUtils';
|
||||
import * as Editor from '../../../common/components/editor-utils/EditorUtils';
|
||||
import ErrorBoundary from '../../../common/components/error-boundary/ErrorBoundary';
|
||||
import ViewNavigationMenu from '../../../common/components/navigation-menu/ViewNavigationMenu';
|
||||
import ProtectRoute from '../../../common/components/protect-route/ProtectRoute';
|
||||
@@ -9,7 +9,7 @@ import { getIsNavigationLocked } from '../../../externals';
|
||||
|
||||
import PlaybackControl from './PlaybackControl';
|
||||
|
||||
import style from '../../../views/editor/Editor.module.scss';
|
||||
import style from './TimerControlExport.module.scss';
|
||||
|
||||
export default memo(TimerControlExport);
|
||||
function TimerControlExport() {
|
||||
@@ -17,8 +17,8 @@ function TimerControlExport() {
|
||||
|
||||
return (
|
||||
<ProtectRoute permission='editor'>
|
||||
<div className={style.playback} data-testid='panel-timer-control'>
|
||||
{!isExtracted && <CornerExtract onClick={(event) => handleLinks('timercontrol', event)} />}
|
||||
<Editor.Panel data-testid='panel-timer-control'>
|
||||
{!isExtracted && <Editor.CornerExtract onClick={(event) => handleLinks('timercontrol', event)} />}
|
||||
{isExtracted && <ViewNavigationMenu suppressSettings isNavigationLocked={getIsNavigationLocked()} />}
|
||||
|
||||
<div className={style.content}>
|
||||
@@ -26,7 +26,7 @@ function TimerControlExport() {
|
||||
<PlaybackControl />
|
||||
</ErrorBoundary>
|
||||
</div>
|
||||
</div>
|
||||
</Editor.Panel>
|
||||
</ProtectRoute>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user