Skip to content

Commit

Permalink
Add download icon, use for "Export".
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Sep 2, 2020
1 parent d9fe5da commit a228c26
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/edit-site/src/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { __ } from '@wordpress/i18n';
import { registerPlugin } from '@wordpress/plugins';
import { addQueryArgs } from '@wordpress/url';
import apiFetch from '@wordpress/api-fetch';
import { download } from '@wordpress/icons';

/**
* Internal dependencies
Expand All @@ -24,7 +25,7 @@ registerPlugin( 'edit-site', {
<ToolsMoreMenuGroup>
<MenuItem
role="menuitem"
icon="download"
icon={ download }
onClick={ () =>
apiFetch( {
path: '/__experimental/edit-site/v1/export',
Expand Down
1 change: 1 addition & 0 deletions packages/icons/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export { default as currencyDollar } from './library/currency-dollar';
export { default as currencyEuro } from './library/currency-euro';
export { default as currencyPound } from './library/currency-pound';
export { default as desktop } from './library/desktop';
export { default as download } from './library/download';
export { default as edit } from './library/edit';
export { default as external } from './library/external';
export { default as file } from './library/file';
Expand Down
12 changes: 12 additions & 0 deletions packages/icons/src/library/download.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const download = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z" />
</SVG>
);

export default download;

0 comments on commit a228c26

Please sign in to comment.