diff --git a/projects/js-packages/shared-extension-utils/src/external-media/sources/google-photos/google-photos-picker-button.js b/projects/js-packages/shared-extension-utils/src/external-media/sources/google-photos/google-photos-picker-button.js index c8c79c2c2db58..92e947be8f59a 100644 --- a/projects/js-packages/shared-extension-utils/src/external-media/sources/google-photos/google-photos-picker-button.js +++ b/projects/js-packages/shared-extension-utils/src/external-media/sources/google-photos/google-photos-picker-button.js @@ -2,7 +2,7 @@ import { Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { Icon, external } from '@wordpress/icons'; import React, { useEffect } from 'react'; -import mediaImage from '../../../images/media.svg'; +import { GooglePhotosMediaIcon } from '../../../icons'; import GooglePhotosAccount from './google-photos-account'; /** @@ -28,12 +28,7 @@ export default function GooglePhotosPickerButton( props ) { return (
{ __( diff --git a/projects/js-packages/shared-extension-utils/src/icons.js b/projects/js-packages/shared-extension-utils/src/icons.js index c0b40c80481f2..b2b7363fafef6 100644 --- a/projects/js-packages/shared-extension-utils/src/icons.js +++ b/projects/js-packages/shared-extension-utils/src/icons.js @@ -1,6 +1,7 @@ import colorStudio from '@automattic/color-studio'; -import { G, Path, Polygon, Rect, SVG } from '@wordpress/components'; +import { G, Path, Polygon, Rect, SVG, Circle } from '@wordpress/components'; import clsx from 'clsx'; +import React from 'react'; import { getIconColor } from './block-icons'; import './icons.scss'; @@ -45,6 +46,38 @@ export const GooglePhotosIcon = props => ( ); +export const GooglePhotosMediaIcon = props => ( + +); + export const OpenverseIcon = props => ( diff --git a/projects/js-packages/shared-extension-utils/src/public-path.js b/projects/js-packages/shared-extension-utils/src/public-path.js deleted file mode 100644 index e6eafc26167f0..0000000000000 --- a/projects/js-packages/shared-extension-utils/src/public-path.js +++ /dev/null @@ -1,12 +0,0 @@ -/* exported __webpack_public_path__ */ -/* global __webpack_public_path__ */ - -/** - * Dynamically set WebPack's publicPath so that split assets can be found. - * Unfortunately we can't set `publicPath: 'auto'` because WordPress.com Simple's JS concatenation breaks it (and other plugins that do JS concatenation probably would too). - * @see https://webpack.js.org/guides/public-path/#on-the-fly - */ -if ( typeof window === 'object' && window.Jetpack_Block_Assets_Base_Url ) { - // eslint-disable-next-line no-global-assign - __webpack_public_path__ = window.Jetpack_Block_Assets_Base_Url; -}