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 from "react"; | |
import PropTypes from "prop-types"; | |
// Create a State Render Prop Component | |
class State extends React.Component { | |
constructor(props) { | |
super(props); | |
// Initialize state from init prop | |
this.state = this.props.init; |
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
export const monroeShocktober = { | |
type: 'MAX_REWARD', | |
// Monroe buy 4 for the price of 3 | |
filters: [ | |
{ | |
qualifier: { | |
match: "ALL", | |
conditions: [ |
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 from 'react' | |
import PropTypes from 'prop-types' | |
import { TueriContext } from './Provider' | |
import kebabCase from 'lodash.kebabcase' | |
class Img extends React.Component { | |
constructor(props) { | |
super(props) | |
this.state = { |
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 Img extends React.Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
width: 0 | |
} | |
this.imgRef = React.createRef() | |
} |
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 Img extends React.Component { | |
constructor(props) { | |
... | |
this.window = typeof window !== 'undefined' && window | |
this.isWebpSupported = this.isWebpSupported.bind(this) | |
} | |
... | |
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 Img extends React.Component { | |
constructor(props) { | |
... | |
this.state = { | |
... | |
isInViewport: false | |
lqipLoaded: false | |
} | |
... |
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 Img extends React.Component { | |
constructor(props) { | |
... | |
this.state = { | |
... | |
fullsizeLoaded: false | |
} | |
... |
OlderNewer