mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: hide background image select when background is not checked
This commit is contained in:
parent
a289e36397
commit
3c56efb9fe
1 changed files with 18 additions and 16 deletions
|
@ -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}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue