source: phonelux-frontend/src/components/PhoneOfferComponent/PhoneOfferComponent.js@ e5b84dc

Last change on this file since e5b84dc was e5b84dc, checked in by Marko <Marko@…>, 22 months ago

Prototype version

  • Property mode set to 100644
File size: 855 bytes
Line 
1import React, { Component } from 'react'
2import { Link } from 'react-router-dom'
3import './PhoneOfferComponent.css'
4
5export class PhoneOfferComponent extends Component {
6
7 constructor(props) {
8 super(props)
9
10 this.state = {
11
12 }
13 }
14
15
16 render() {
17 // console.log(this.props)
18 return (
19 <tr className='phone-with-offers-table-row'>
20 <td>{this.props.offer_shop}</td>
21 <td><a style={{ textDecoration: 'none' }} href={this.props.offer_url}>{this.props.offer_name}</a></td>
22 <td>{this.props.price} ден.</td>
23 <td>
24 <Link style={{ textDecoration: 'none' }} to={"/phoneoffer/"+this.props.id}>
25 <button className='phone-offer-specifications-button'>Спецификации</button>
26 </Link>
27 </td>
28 </tr>
29 )
30 }
31}
32
33export default PhoneOfferComponent
34
Note: See TracBrowser for help on using the repository browser.