mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-17 03:04:26 +01:00
feat: hide background image select when background is not checked
This commit is contained in:
@@ -197,6 +197,7 @@ const ImageExportModal = ({
|
|||||||
label={t("imageExportDialog.label.withBackground")}
|
label={t("imageExportDialog.label.withBackground")}
|
||||||
name="exportBackgroundSwitch"
|
name="exportBackgroundSwitch"
|
||||||
>
|
>
|
||||||
|
{exportWithBackground && (
|
||||||
<Select
|
<Select
|
||||||
items={EXPORT_BACKGROUND_IMAGES}
|
items={EXPORT_BACKGROUND_IMAGES}
|
||||||
ariaLabel={t("imageExportDialog.label.backgroundImage")}
|
ariaLabel={t("imageExportDialog.label.backgroundImage")}
|
||||||
@@ -213,6 +214,7 @@ const ImageExportModal = ({
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
<Switch
|
<Switch
|
||||||
name="exportBackgroundSwitch"
|
name="exportBackgroundSwitch"
|
||||||
checked={exportWithBackground}
|
checked={exportWithBackground}
|
||||||
|
|||||||
Reference in New Issue
Block a user