Ignore:
Timestamp:
09/23/22 02:03:14 (2 years ago)
Author:
Marko <Marko@…>
Branches:
master
Children:
895cd87
Parents:
436e0da
Message:

Implemented all use cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phonelux-frontend/src/components/PhoneOfferDetailsComponent/PhoneOfferDetailsComponent.js

    r436e0da r48f3030  
    106106              this.state.offer.price == null ? '/' : this.state.offer.price+' ден.'}</td>
    107107            </tr>
     108            { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Предна камера") ?
    108109            <tr className='phone-offer-details-table-row'>
    109110              <td>Предна камера</td><td>{this.state.offer == null ||
    110111              this.state.offer.front_camera == null ? '/' : this.state.offer.front_camera}</td>
    111             </tr>
     112            </tr> : <></>
     113            }
    112114
     115             { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Задна камера") ?
    113116            <tr className='phone-offer-details-table-row'>
    114117              <td>Задна камера</td><td>{this.state.offer == null ||
    115118              this.state.offer.back_camera == null ? '/' : this.state.offer.back_camera}</td>
    116             </tr>
     119            </tr> : <></>
     120            }
    117121
     122            { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("РОМ меморија") ?
    118123            <tr className='phone-offer-details-table-row'>
    119124              <td>РОМ меморија</td><td>{this.state.offer == null ||
    120125              this.state.offer.rom_memory == null ? '/' : this.state.offer.rom_memory}</td>
    121             </tr>
     126            </tr> : <></>
     127            }
    122128
     129            { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("РАМ меморија") ?
    123130            <tr className='phone-offer-details-table-row'>
    124131              <td>РАМ меморија</td><td>{this.state.offer == null ||
    125132              this.state.offer.ram_memory == null ? '/' : this.state.offer.ram_memory}</td>
    126             </tr>
     133            </tr> : <></>
     134            }
    127135
     136            { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Оперативен систем") ?
    128137            <tr className='phone-offer-details-table-row'>
    129138              <td>Оперативен систем</td><td>{this.state.offer == null ||
    130139              this.state.offer.operating_system == null ? '/' : this.state.offer.operating_system}</td>
    131             </tr>
     140            </tr> : <></>
     141             }
    132142
     143            { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Чипсет") ?
    133144            <tr className='phone-offer-details-table-row'>
    134145              <td>Чипсет</td><td>{this.state.offer == null ||
    135146              this.state.offer.chipset == null ? '/' : this.state.offer.chipset}</td>
    136             </tr>
     147            </tr> : <></>
     148            }
    137149
     150            { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Процесор") ?
    138151            <tr className='phone-offer-details-table-row'>
    139152              <td>Процесор</td><td>{this.state.offer == null ||
    140153              this.state.offer.cpu == null ? '/' : this.state.offer.cpu}</td>
    141             </tr>
     154            </tr> : <></>
     155            }
    142156
     157            { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Батерија") ?
    143158            <tr className='phone-offer-details-table-row'>
    144159              <td>Батерија</td><td>{this.state.offer == null ||
    145160              this.state.offer.battery == null ? '/' : this.state.offer.battery}</td>
    146             </tr>
     161            </tr> : <></>
     162            }
    147163
     164            { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Боја") ?
    148165            <tr className='phone-offer-details-table-row'>
    149166              <td>Боја</td><td>{this.state.offer == null ||
    150167              this.state.offer.color == null ? '/' : this.state.offer.color}</td>
    151             </tr>
     168            </tr> : <></>
     169            }
    152170
    153171            <tr className='phone-offer-details-table-row'>
Note: See TracChangeset for help on using the changeset viewer.