diff --git a/assets/js/blocks/cart-checkout/mini-cart/edit.tsx b/assets/js/blocks/cart-checkout/mini-cart/edit.tsx index debad223a5a..213b71651b2 100644 --- a/assets/js/blocks/cart-checkout/mini-cart/edit.tsx +++ b/assets/js/blocks/cart-checkout/mini-cart/edit.tsx @@ -1,49 +1,24 @@ /** * External dependencies */ -import { - AlignmentControl, - BlockControls, - InspectorControls, - useBlockProps, -} from '@wordpress/block-editor'; +import { InspectorControls, useBlockProps } from '@wordpress/block-editor'; import type { ReactElement } from 'react'; import { formatPrice } from '@woocommerce/price-format'; import { CartCheckoutCompatibilityNotice } from '@woocommerce/editor-components/compatibility-notices'; import { PanelBody, ExternalLink } from '@wordpress/components'; import { getSetting } from '@woocommerce/settings'; import { __ } from '@wordpress/i18n'; -import { positionCenter, positionRight, positionLeft } from '@wordpress/icons'; import Noninteractive from '@woocommerce/base-components/noninteractive'; /** * Internal dependencies */ import QuantityBadge from './quantity-badge'; -import { useColorProps } from '../../../hooks/style-attributes'; -interface Attributes { - align: string; - isInitiallyOpen?: boolean; - backgroundColor?: string; - textColor?: string; - style?: Record< string, Record< string, string > >; -} - -interface Props { - attributes: Attributes; - setAttributes: ( attributes: Record< string, unknown > ) => void; -} - -const MiniCartBlock = ( { - attributes, - setAttributes, -}: Props ): ReactElement => { - const { align } = attributes; +const MiniCartBlock = (): ReactElement => { const blockProps = useBlockProps( { - className: `wc-block-mini-cart align-${ align }`, + className: `wc-block-mini-cart`, } ); - const colorProps = useColorProps( attributes ); const templatePartEditUri = getSetting( 'templatePartEditUri', @@ -55,40 +30,6 @@ const MiniCartBlock = ( { return (
- - - setAttributes( { align: newAlign } ) - } - /> - { templatePartEditUri && ( - +
'; } @@ -373,8 +369,8 @@ protected function get_markup( $attributes ) { ); } - return '
- + return '
+