rebrand hide button row to hide footer
This commit is contained in:
parent
a052def314
commit
139b5376fc
2 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ export default function ReplEditor(Props) {
|
||||||
const { context, ...editorProps } = Props;
|
const { context, ...editorProps } = Props;
|
||||||
const { containerRef, editorRef, error, init, pending } = context;
|
const { containerRef, editorRef, error, init, pending } = context;
|
||||||
const settings = useSettings();
|
const settings = useSettings();
|
||||||
const { panelPosition, isZen } = settings;
|
const { panelPosition, isZen, isButtonRowHidden } = settings;
|
||||||
const isEmbedded = typeof window !== 'undefined' && window.location !== window.parent.location;
|
const isEmbedded = typeof window !== 'undefined' && window.location !== window.parent.location;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -27,7 +27,7 @@ export default function ReplEditor(Props) {
|
||||||
</div>
|
</div>
|
||||||
{!isZen && panelPosition === 'right' && <VerticalPanel context={context} />}
|
{!isZen && panelPosition === 'right' && <VerticalPanel context={context} />}
|
||||||
</div>
|
</div>
|
||||||
<Footer context={context} isEmbedded={isEmbedded} />
|
{!isButtonRowHidden && <Footer context={context} isEmbedded={isEmbedded} />}
|
||||||
<UserFacingErrorMessage error={error} />
|
<UserFacingErrorMessage error={error} />
|
||||||
{!isZen && panelPosition === 'bottom' && <HorizontalPanel context={context} />}
|
{!isZen && panelPosition === 'bottom' && <HorizontalPanel context={context} />}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -323,7 +323,7 @@ export function SettingsTab({ started }) {
|
||||||
value={isSyncEnabled}
|
value={isSyncEnabled}
|
||||||
/>
|
/>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
label="Hide top buttons"
|
label="Hide footer"
|
||||||
onChange={(cbEvent) => settingsMap.setKey('isButtonRowHidden', cbEvent.target.checked)}
|
onChange={(cbEvent) => settingsMap.setKey('isButtonRowHidden', cbEvent.target.checked)}
|
||||||
value={isButtonRowHidden}
|
value={isButtonRowHidden}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue