Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
imanish003 committed Sep 21, 2023
1 parent 8554ed6 commit 1c97714
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
/**
* Internal dependencies
*/
import { DisplayLayoutControlProps, LayoutOptions } from '../types';
import { DisplayLayoutControlProps, LayoutOptions } from '../../types';

const getHelpText = ( layoutOptions: LayoutOptions ) => {
switch ( layoutOptions ) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ import { BlockControls } from '@wordpress/block-editor';
*/
import { setQueryAttribute } from '../../utils';
import DisplaySettingsToolbar from './display-settings-toolbar';
import DisplayLayoutToolbar from './display-layout-toolbar';
import PatternChooserToolbar from './pattern-chooser-toolbar';
import type { ProductCollectionEditComponentProps } from '../../types';

export default function ToolbarControls(
props: ProductCollectionEditComponentProps
) {
const { attributes, setAttributes, openPatternSelectionModal } = props;
const { query, displayLayout } = attributes;
const { attributes, openPatternSelectionModal } = props;
const { query } = attributes;

const setQueryAttributeBind = useMemo(
() => setQueryAttribute.bind( null, props ),
Expand All @@ -35,10 +34,6 @@ export default function ToolbarControls(
query={ query }
setQueryAttribute={ setQueryAttributeBind }
/>
<DisplayLayoutToolbar
displayLayout={ displayLayout }
setAttributes={ setAttributes }
/>
</>
) }
</BlockControls>
Expand Down
2 changes: 1 addition & 1 deletion assets/js/blocks/product-collection/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export type TProductCollectionOrderBy =
| 'popularity'
| 'rating';

export type DisplayLayoutToolbarProps = {
export type DisplayLayoutControlProps = {
displayLayout: ProductCollectionDisplayLayout;
setAttributes: ( attrs: Partial< ProductCollectionAttributes > ) => void;
};
Expand Down

0 comments on commit 1c97714

Please sign in to comment.