uppy/packages/@uppy/provider-views/src/AuthView.js
Renée Kooi 733de659da
Upgrade standard to v14 (#1860)
* Update eslint dependencies.

* standard --fix

* build: disable handler name lint rule

* status-bar: manually fix lint errors

* webcam: manually fix lint errors

* url: manually fix lint errors

* react-native: manually fix lint errors

* dashboard: manually fix lint errors

* informer: manually fix linting errors

* progress-bar: manually fix lint errors

* provider-views: manually fix lint errors

* redux-dev-tools: manually fix lint errors

* build: disable buggy no-unused-vars rule

* examples: manually fix lint errors

* ` quotes for code things, ' for text things
2019-10-09 14:53:02 +02:00

27 lines
875 B
JavaScript

const { h, Component } = require('preact')
class AuthView extends Component {
render () {
const pluginNameComponent = (
<span class="uppy-Provider-authTitleName">{this.props.pluginName}<br /></span>
)
return (
<div class="uppy-Provider-auth">
<div class="uppy-Provider-authIcon">{this.props.pluginIcon()}</div>
<div class="uppy-Provider-authTitle">
{this.props.i18nArray('authenticateWithTitle', { pluginName: pluginNameComponent })}
</div>
<button
type="button"
class="uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn"
onclick={this.props.handleAuth}
data-uppy-super-focusable
>
{this.props.i18nArray('authenticateWith', { pluginName: this.props.pluginName })}
</button>
</div>
)
}
}
module.exports = AuthView