mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-26 03:35:19 +00:00
* 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
27 lines
875 B
JavaScript
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
|