- Timestamp:
- 09/22/22 03:14:53 (2 years ago)
- Branches:
- master
- Children:
- 48f3030
- Parents:
- 34950c6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-frontend/src/components/PhoneCardGridComponent/PhoneCardGridComponent.js
r34950c6 r436e0da 75 75 } 76 76 77 // dodaj gi i filtrite za specifikacija 77 if(this.props.ram) 78 { 79 filters += 'ram='+this.props.ram+'&' 80 } 78 81 79 // izdvoj metod da ti pravi querystring 82 if(this.props.rom) 83 { 84 filters += 'rom='+this.props.rom+'&' 85 } 86 87 if(this.props.frontcamera) 88 { 89 filters += 'frontcamera='+this.props.frontcamera+'&' 90 } 91 92 if(this.props.backcamera) 93 { 94 filters += 'backcamera='+this.props.backcamera+'&' 95 } 96 97 if(this.props.chipset) 98 { 99 filters += 'chipset='+this.props.chipset+'&' 100 } 101 102 if(this.props.cpu) 103 { 104 filters += 'cpu='+this.props.cpu+'&' 105 } 106 107 if(this.props.operatingsystem) 108 { 109 filters += 'operatingsystem='+this.props.operatingsystem+'&' 110 } 111 112 if(this.props.color) 113 { 114 filters += 'color='+this.props.color+'&' 115 } 116 117 if(this.props.battery) 118 { 119 filters += 'battery='+this.props.battery+'&' 120 } 80 121 81 122 axios.get('/phones'+filters)
Note:
See TracChangeset
for help on using the changeset viewer.