daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const newTo = {
  2.                       pathname: "/menu",
  3.                       param1: p.id,
  4.                       param2: p.caption,
  5.                       param3:p.currentMatchday,
  6.                       param4:p.numberOfMatchdays,
  7.                       param5:p.numberOfTeams,
  8.                       param6:p.numberOfGames,
  9.                       param7:p.lastUpdated
  10.                     };
  11.                     return(
  12.                         <div className="col-md-3 centered" key={p.id}>
  13.                             <div className="hello">
  14.                               <img className="ing" src="https://cdn0.iconfinder.com/data/icons/cup/154/football-shield-club-sport-512.png" alt="Card image cap"/>
  15.                               <div className="card-body">
  16.                                 <h5 className="card-title black"> {p.caption} </h5>
  17.                                 <Link to={newTo} className="btn btn-primary">GO somewhere</Link>
  18.                               </div>
  19.                             </div>
  20.                         </div>
  21.                     );
  22.    
  23. class menuLigues extends Component {
  24.     constructor(props){
  25.             super(props)
  26.             this.state = {
  27.                 ide: '',
  28.                 caption: '',
  29.                 currentMatchday: '',
  30.                 numberOfMatchdays: '',
  31.                 numberOfTeams: '',
  32.                 numberOfGames: '',
  33.                 lastUpdated: ''
  34.             };
  35.     }
  36.  
  37.     componentDidMount(){
  38.         this.setState({
  39.                 id: this.props.location.param1,
  40.                 caption: this.props.location.param2,
  41.                 currentMatchday: this.props.location.param3,
  42.                 numberOfMatchdays: this.props.location.param4,
  43.                 numberOfTeams: this.props.location.param5,
  44.                 numberOfGames: this.props.location.param6,
  45.                 lastUpdated: this.props.location.param7
  46.             });
  47.     }
  48. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top