react-cimpress-fulfiller-logo
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "react-cimpress-fulfiller-logo", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Fetches fulfiller logo from Fulfiller Identity Service.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
# react-cimpress-fulfiller-logo | ||
This repository stores a react compontent that anyone can use to conveniently place a fullfiller logo in their react application. | ||
This repository stores a react compontent that anyone can use to conveniently place a fullfiller logo in their react application. | ||
## Usage | ||
Install the npm package | ||
`npm install react-cimpress-fulfiller-logo --save` | ||
import the component | ||
`import { FulfillerLogo } from 'react-cimpress-fulfiller-logo'` | ||
@@ -10,3 +10,3 @@ import React, { Component } from 'react'; | ||
this.state = { | ||
imageBlog: null, | ||
imageBlob: null, | ||
} | ||
@@ -16,4 +16,3 @@ } | ||
fetchImage(isVisible) { | ||
console.log(isVisible); | ||
if (isVisible && !this.state.imageBlog) { | ||
if (isVisible && !this.state.imageBlob) { | ||
let headers = new Headers(); | ||
@@ -20,0 +19,0 @@ headers.append("Authorization", `Bearer ${this.props.accessToken}`); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2645
15
42