- Timestamp:
- 11/20/22 16:34:52 (2 years ago)
- Branches:
- master
- Parents:
- ffd50db
- Location:
- phonelux-frontend/src/components/PhoneOfferDetailsComponent
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-frontend/src/components/PhoneOfferDetailsComponent/PhoneOfferDetailsComponent.css
rffd50db r47f4eaf 140 140 } 141 141 142 .offerdetails-report-icon{ 143 cursor: pointer; 144 } 142 145 143 146 147 -
phonelux-frontend/src/components/PhoneOfferDetailsComponent/PhoneOfferDetailsComponent.js
rffd50db r47f4eaf 9 9 import VisibilityIcon from '@mui/icons-material/Visibility'; 10 10 import VisibilityOffIcon from '@mui/icons-material/VisibilityOff'; 11 import ReportIcon from '@mui/icons-material/Report'; 11 12 12 13 … … 61 62 } 62 63 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 63 83 render() { 64 84 console.log(this.state) … … 71 91 { 72 92 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') ? 73 99 this.state.showAllSpecs ? 74 100 <Tippy placement='bottom' content='Прикажи ги избраните спецификации'> … … 103 129 104 130 })()} 131 105 132 </div> 106 133 <div className='phone-offer-details-last-updated-wrapper'></div> … … 109 136 <table className='phone-offer-details-table'> 110 137 <thead> 111 <tr><th colSpan={2}>Детали за понудата</th></tr> 138 <tr><th colSpan={2}> 139 Детали за понудата 140 </th></tr> 112 141 </thead> 113 142 <tbody>
Note:
See TracChangeset
for help on using the changeset viewer.