Skip to content

Commit

Permalink
Added: DropZone when sitelogo is present (#65596)
Browse files Browse the repository at this point in the history
* Add: DropZone when sitelogo is present

* Add canUserEdit condition in dropzone

Co-authored-by: dhruvang21 <dhruvang21@git.wordpress.org>
Co-authored-by: mikachan <mikachan@git.wordpress.org>
Co-authored-by: richtabor <richtabor@git.wordpress.org>

---------

Co-authored-by: Sarah Norris <1645628+mikachan@users.noreply.github.com>
  • Loading branch information
dhruvang21 and mikachan authored Sep 27, 2024
1 parent ebb58c8 commit ae1c989
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/site-logo/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ export default function LogoEdit( {
iconId={ siteIconId }
canUserEdit={ canUserEdit }
/>
{ canUserEdit && <DropZone onFilesDrop={ onFilesDrop } /> }
</>
);
}
Expand Down

0 comments on commit ae1c989

Please sign in to comment.