Changeset e5b84dc for phonelux-frontend/src/components/HomepageComponent.js
- Timestamp:
- 09/11/22 18:03:58 (2 years ago)
- Branches:
- master
- Children:
- 775e15e
- Parents:
- 527b93f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-frontend/src/components/HomepageComponent.js
r527b93f re5b84dc 3 3 import HeaderComponent from './HeaderComponent/HeaderComponent' 4 4 import PhoneCardGridComponent from './PhoneCardGridComponent/PhoneCardGridComponent' 5 5 6 6 7 export class HomepageComponent extends Component { … … 10 11 11 12 this.state = { 12 shops: null,13 brands: null,14 priceRange: null,15 searchValue: null,16 sortBy: null13 shops: '', 14 brands: '', 15 priceRange: '', 16 searchValue: '', 17 sortBy: 'mostPopular' 17 18 } 18 19 } … … 46 47 searchValue: e.searchValue 47 48 }) 49 48 50 } 49 51 … … 56 58 } 57 59 60 58 61 render() { 59 62 return ( … … 61 64 <HeaderComponent/> 62 65 <GroupedFiltersComponent passFilters={this.changeFilters}/> 63 <PhoneCardGridComponent />66 <PhoneCardGridComponent {...this.state}/> 64 67 </> 65 68 )
Note:
See TracChangeset
for help on using the changeset viewer.