Ignore:
Timestamp:
11/20/22 16:34:52 (20 months ago)
Author:
Marko <Marko@…>
Branches:
master
Parents:
ffd50db
Message:

Final features implemented

File:
1 edited

Legend:

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

    rffd50db r47f4eaf  
    99import VisibilityIcon from '@mui/icons-material/Visibility';
    1010import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
     11import ReportIcon from '@mui/icons-material/Report';
    1112
    1213
     
    6162  }
    6263
     64    reportOffer = () =>{
     65      alert('Пратена е пријава до администратор за невалидност на спецификациите на понудата!')
     66      var config = {
     67        method: 'post',
     68        url: '/offerreport/'+this.state.offerId+'/'+this.context.userId,
     69        headers: {
     70          'Authorization': 'Bearer '+localStorage.getItem('token')
     71        }
     72      };
     73     
     74      axios(config)
     75      .then(function (response) {
     76        console.log(JSON.stringify(response.data));
     77      })
     78      .catch(function (error) {
     79        console.log(error);
     80      });
     81    }
     82
    6383  render() {
    6484    console.log(this.state)
     
    7191          {
    7292            localStorage.getItem('token') ?
     93            <Tippy placement='bottom' content='Пријави понуда за неточни спецификации'>
     94            <ReportIcon onClick={this.reportOffer} className='offerdetails-report-icon' style={{fontSize: '45px'}}/>
     95         </Tippy> : <></>
     96          }
     97          {
     98            localStorage.getItem('token') ?
    7399            this.state.showAllSpecs ?
    74100              <Tippy placement='bottom' content='Прикажи ги избраните спецификации'>
     
    103129
    104130          })()}
     131
    105132        </div>
    106133        <div className='phone-offer-details-last-updated-wrapper'></div>
     
    109136        <table className='phone-offer-details-table'>
    110137          <thead>
    111           <tr><th colSpan={2}>Детали за понудата</th></tr>
     138          <tr><th colSpan={2}>
     139            Детали за понудата
     140          </th></tr>
    112141          </thead>
    113142          <tbody>
Note: See TracChangeset for help on using the changeset viewer.