Changeset 436e0da


Ignore:
Timestamp:
09/22/22 03:14:53 (20 months ago)
Author:
Marko <Marko@…>
Branches:
master
Children:
48f3030
Parents:
34950c6
Message:

Cheaper offers component edited

Location:
phonelux-frontend/src/components
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • phonelux-frontend/src/components/CheaperOffersComponent/CheaperOffersComponent.css

    r34950c6 r436e0da  
    4141
    4242
     43.no-cheaper-offers-message{
     44    width: fit-content;
     45    padding: 25px;
     46    border-radius: 20px;
     47    background-color: #a6c9ab;
     48    margin: 0 auto;
     49    margin-top: 300px;
     50    border: 2px solid black;
     51}
    4352
     53
     54
  • phonelux-frontend/src/components/CheaperOffersComponent/CheaperOffersComponent.js

    r34950c6 r436e0da  
    2626          aria-describedby="cheaperoffers-modal-description"
    2727        >
     28          {
     29            this.props.cheaperOffers.length > 0 ?
    2830          <Box className='cheaperoffers-modal-box'>
    2931          <table cellPadding={20} className='cheaperoffers-table'>
     
    5557            </tbody>
    5658          </table>
    57           </Box>
     59          </Box> : <h1 className='no-cheaper-offers-message'>Нема поевтини понуди</h1>
     60          }
    5861        </Modal>
    5962      </div>
  • phonelux-frontend/src/components/HomepageComponent.js

    r34950c6 r436e0da  
    215215    })
    216216  }
    217   console.log(this.state)
    218217}
    219218
     
    222221    // console.log(this.context)
    223222    // console.log(localStorage.getItem('token'))
    224     console.log(this.state)
     223    // console.log(this.state)
    225224    return (
    226225        <>
  • phonelux-frontend/src/components/PhoneCardGridComponent/PhoneCardGridComponent.js

    r34950c6 r436e0da  
    7575      }
    7676
    77       // dodaj gi i filtrite za specifikacija
     77      if(this.props.ram)
     78      {
     79        filters += 'ram='+this.props.ram+'&'
     80      }
    7881
    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      }
    80121
    81122      axios.get('/phones'+filters)
Note: See TracChangeset for help on using the changeset viewer.