Skip to content

Commit

Permalink
✨ (admin) remove "Logo" toggle in the Export tab (#3972)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann authored Sep 18, 2024
1 parent eab91db commit b58dded
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions adminSiteClient/EditorExportTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type ExportSettings = Required<
| "hideTitle"
| "forceHideAnnotationFieldsInTitle"
| "hideSubtitle"
| "hideLogo"
| "hideNote"
| "hideOriginUrl"
| "shouldIncludeDetailsInStaticExport"
Expand All @@ -28,7 +27,6 @@ type OriginalGrapher = Pick<
| "shouldAddEntitySuffixToTitle"
| "shouldAddTimeSuffixToTitle"
| "currentSubtitle"
| "hideLogo"
| "note"
| "originUrl"
| "shouldIncludeDetailsInStaticExport"
Expand All @@ -49,7 +47,6 @@ const DEFAULT_SETTINGS: ExportSettings = {
time: false,
},
hideSubtitle: false,
hideLogo: false,
hideNote: false,
hideOriginUrl: false,
shouldIncludeDetailsInStaticExport: false,
Expand Down Expand Up @@ -118,7 +115,6 @@ export class EditorExportTab<
forceHideAnnotationFieldsInTitle:
this.grapher.forceHideAnnotationFieldsInTitle,
hideSubtitle: this.grapher.hideSubtitle,
hideLogo: this.grapher.hideLogo,
hideNote: this.grapher.hideNote,
hideOriginUrl: this.grapher.hideOriginUrl,
shouldIncludeDetailsInStaticExport:
Expand All @@ -134,7 +130,6 @@ export class EditorExportTab<
this.grapher.shouldAddEntitySuffixToTitle,
shouldAddTimeSuffixToTitle: this.grapher.shouldAddTimeSuffixToTitle,
currentSubtitle: this.grapher.currentSubtitle,
hideLogo: this.grapher.hideLogo,
note: this.grapher.note,
originUrl: this.grapher.originUrl,
shouldIncludeDetailsInStaticExport:
Expand Down Expand Up @@ -268,15 +263,6 @@ export class EditorExportTab<
}
/>
)}
{!this.originalGrapher.hideLogo && (
<Toggle
label="Logo"
value={!this.settings.hideLogo}
onValue={(value) =>
(this.settings.hideLogo = !value)
}
/>
)}
{this.originalGrapher.note && (
<Toggle
label="Note"
Expand Down

0 comments on commit b58dded

Please sign in to comment.