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