This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DailyContestWinners { | |
constructor(){ | |
this.data = ''; | |
this.globalID = ''; | |
this.date = ''; | |
this.scrollPos = 0; | |
this.totalItems = 0; | |
this.list = document.querySelector('.cta-message ul'); | |
this.el = document.getElementById('action'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './ContestWinnerList.scss'; | |
export default class ContestWinnerList extends Component { | |
constructor(props) { | |
console.log(props.data); | |
super(props); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import Banner from './stateless/Banner/Banner'; | |
import ContestWinnerList from './stateless/ContestWinnerList/ContestWinnerList'; | |
import {getData} from '../interstitials/leanplum/daily-contest-winners/api'; | |
export default class DailyContestWinners extends Component { | |
constructor(props) { |