UNPKG

cluedin-widget

Version:

This is the project for creating and managing widgets in CluedIn.

27 lines (21 loc) 924 B
import React, { Component } from 'react' import providerHelper from '../../helpers/provider.js' import { CluedInListItem, CluedInListImage } from '../generics/cluedinList.jsx' import CluedInButton from '../generics/cluedinbutton.jsx' export default class CurrentProviderListRow extends Component { reAuth() { const { onAuthHandler, provider } = this.props; onAuthHandler( provider ); } render() { const { provider } = this.props; let providerConfig = providerHelper.getProviderConfig( provider.Name ); return <CluedInListItem> <CluedInListImage name={provider.Name} url={providerConfig.icon}></CluedInListImage> <h4>{provider.Name}</h4> <div className="cluedIn_reAuth"> <CluedInButton click={this.reAuth.bind(this)} message="Re-Authenticate"></CluedInButton> </div> </CluedInListItem>; } };