File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { InputProps } from '../../elements/Input'
5
5
import SearchCategory , { SearchCategoryProps } from './SearchCategory'
6
6
import SearchResult , { SearchResultProps } from './SearchResult'
7
7
import SearchResults from './SearchResults'
8
+ import { SearchCategoryLayoutProps } from './SearchCategoryLayout'
8
9
9
10
export interface SearchProps extends StrictSearchProps {
10
11
[ key : string ] : any
@@ -61,11 +62,10 @@ export interface StrictSearchProps {
61
62
/**
62
63
* Renders the SearchCategory layout.
63
64
*
64
- * @param {object } categoryContent - The Renderable SearchCategory contents.
65
- * @param {object } resultsContent - The Renderable SearchResult contents.
65
+ * @param {object } props - The SearchCategoryLayout props object.
66
66
* @returns {* } - Renderable SearchCategory layout.
67
67
*/
68
- categoryLayoutRenderer ?: ( props : SearchCategoryProps ) => React . ReactElement < any >
68
+ categoryLayoutRenderer ?: ( props : Pick < SearchCategoryLayoutProps , 'categoryContent' | 'resultsContent' > ) => React . ReactElement < any >
69
69
70
70
/**
71
71
* Renders the SearchCategory contents.
Original file line number Diff line number Diff line change 1
1
import * as React from 'react'
2
2
3
3
import { SemanticShorthandContent } from '../../generic'
4
+ import { SearchCategoryLayoutProps } from './SearchCategoryLayout'
4
5
import SearchResult from './SearchResult'
5
6
6
7
export interface SearchCategoryProps extends StrictSearchCategoryProps {
@@ -29,14 +30,10 @@ export interface StrictSearchCategoryProps {
29
30
/**
30
31
* Renders the SearchCategory layout.
31
32
*
32
- * @param {object } categoryContent - The Renderable SearchCategory contents.
33
- * @param {object } resultsContent - The Renderable SearchResult contents.
33
+ * @param {object } props - The SearchCategoryLayout props object.
34
34
* @returns {* } - Renderable SearchCategory layout.
35
35
*/
36
- layoutRenderer ?: (
37
- categoryContent : React . ReactElement < any > ,
38
- resultsContent : React . ReactElement < any > ,
39
- ) => React . ReactElement < any >
36
+ layoutRenderer ?: ( props : Pick < SearchCategoryLayoutProps , 'categoryContent' | 'resultsContent' > ) => React . ReactElement < any >
40
37
41
38
/**
42
39
* Renders the category contents.
You can’t perform that action at this time.
0 commit comments