Skip to content

Commit

Permalink
Added: DropZone when sitelogo is present (WordPress#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 <[email protected]>
Co-authored-by: mikachan <[email protected]>
Co-authored-by: richtabor <[email protected]>

---------

Co-authored-by: Sarah Norris <[email protected]>
  • Loading branch information
dhruvang21 and mikachan committed 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.