|
Last change
on this file since 47f4eaf was 47f4eaf, checked in by Marko <Marko@…>, 3 years ago |
|
Final features implemented
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | import React, { Component } from 'react'
|
|---|
| 2 | import { Link } from 'react-router-dom'
|
|---|
| 3 | import './SingleReportComponent.css'
|
|---|
| 4 | import DeleteIcon from '@mui/icons-material/Delete';
|
|---|
| 5 | import Tippy from '@tippyjs/react';
|
|---|
| 6 | import { Delete } from '@mui/icons-material';
|
|---|
| 7 |
|
|---|
| 8 | export class SingleReportComponent extends Component {
|
|---|
| 9 | constructor(props) {
|
|---|
| 10 | super(props)
|
|---|
| 11 |
|
|---|
| 12 | this.state = {
|
|---|
| 13 |
|
|---|
| 14 | }
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | render() {
|
|---|
| 18 | return (
|
|---|
| 19 | <tr className='offerreports-section-table-row'>
|
|---|
| 20 | <td><Link to={"/phoneoffer/"+this.props.phoneOffer.id}>{this.props.phoneOffer.offer_name}</Link></td>
|
|---|
| 21 | <td>{this.props.reportedAt.split('T')[0]}</td>
|
|---|
| 22 | <td>{this.props.reportedBy}</td>
|
|---|
| 23 | <td>{this.props.times_reported}</td>
|
|---|
| 24 | <td>{
|
|---|
| 25 | <Tippy placement='bottom' content='Отстрани пријава'>
|
|---|
| 26 | <Delete className='offerreport-remove-icon' onClick={() => this.props.removeOfferReport(this.props.id)}
|
|---|
| 27 | style={{fontSize: '45px'}}/>
|
|---|
| 28 | </Tippy>
|
|---|
| 29 | }</td>
|
|---|
| 30 | </tr>
|
|---|
| 31 | )
|
|---|
| 32 | }
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
| 35 | export default SingleReportComponent
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.