This repository was archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 215
Remove propTypes definitions from Reviews By Product #9692
Closed
hritikchaudhary
wants to merge
11
commits into
woocommerce:trunk
from
hritikchaudhary:remove-proptypes-reviews-by-product
Closed
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a8feb23
removed proptypes from reviews by product
hritikchaudhary 4e823a7
updated checkstyle.xml
hritikchaudhary b71a6c4
fixed ts error
hritikchaudhary 4b43aa5
Merge branch 'trunk' into remove-proptypes-reviews-by-product
nielslange 036b1bf
Merge branch 'trunk' into remove-proptypes-reviews-by-product
nielslange 93a6a8d
Merge branch 'trunk' into remove-proptypes-reviews-by-product
nielslange 8d9a9a3
addressed review comments
hritikchaudhary d6c0cb1
Merge branch 'trunk' into remove-proptypes-reviews-by-product
nielslange 7a856fd
Merge branch 'trunk' into remove-proptypes-reviews-by-product
nielslange 18d28cc
Merge branch 'woocommerce:trunk' into remove-proptypes-reviews-by-pro…
hritikchaudhary 398d7af
added with-product.d.ts file
hritikchaudhary File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /** | ||
| * External dependencies | ||
| */ | ||
| import { useBlockProps } from '@wordpress/block-editor'; | ||
|
|
||
| /** | ||
| * Internal dependencies | ||
| */ | ||
| import Block from './block'; | ||
| import type { ReviewsByProductEditorProps } from './types'; | ||
|
|
||
| export const Edit = ( | ||
| props: unknown & ReviewsByProductEditorProps | ||
| ): JSX.Element => { | ||
| const blockProps = useBlockProps(); | ||
|
|
||
| return ( | ||
| <div { ...blockProps }> | ||
| <Block { ...props } /> | ||
| </div> | ||
| ); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /** | ||
| * External dependencies | ||
| */ | ||
| import { ErrorObject } from '@woocommerce/editor-components/error-placeholder'; | ||
| import { renderItemArgs } from '@woocommerce/editor-components/search-list-control/types'; | ||
|
|
||
| export interface ReviewsByProductEditorProps { | ||
| attributes: { | ||
| editMode: boolean; | ||
| categoryIds: number[]; | ||
| showProductName: boolean; | ||
| productId: number[]; | ||
| }; | ||
| setAttributes: ( attributes: { | ||
| editMode?: boolean; | ||
| categoryIds?: number[]; | ||
| showProductName?: boolean; | ||
| productId?: number[]; | ||
| } ) => void; | ||
| debouncedSpeak: ( message: string ) => void; | ||
| } | ||
|
|
||
| export interface SearchListItemProps extends renderItemArgs { | ||
| name: string; | ||
| reviewCount: number; | ||
| } | ||
|
|
||
| export interface NoReviewsPlaceholderProps { | ||
| error?: string | ErrorObject; | ||
| getProduct: () => void; | ||
| isLoading?: boolean; | ||
| product?: { | ||
| name: string; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.