mirror of
https://github.com/transloadit/uppy.git
synced 2026-08-02 14:52:24 +00:00
* relocate .vscode
* Switch to transloadit linter
* Update .eslintrc.json
* autofix code
* unlink and install eslint-config-transloadit@1.1.1
* Change 0 to "off"
* Don't change 'use strict'
* Do not vertically align
* disable key-spacing
* add import/no-extraneous-dependencies per package
* add more react/a11y warnings
* Revert "autofix code"
This reverts commit 14c8a8cde8.
* add import/no-extraneous-dependencies per example and main package
* autofix code (2)
* Allow devDependencies in ./bin
* Change import/no-extraneous-dependencies to warn again
* upgrade linter
* Set import/no-extraneous-dependencies to warn
17 lines
432 B
JavaScript
17 lines
432 B
JavaScript
const { h } = require('preact')
|
|
const CameraIcon = require('./CameraIcon')
|
|
|
|
module.exports = ({ onSnapshot, i18n }) => {
|
|
return (
|
|
<button
|
|
className="uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture"
|
|
type="button"
|
|
title={i18n('takePicture')}
|
|
aria-label={i18n('takePicture')}
|
|
onClick={onSnapshot}
|
|
data-uppy-super-focusable
|
|
>
|
|
{CameraIcon()}
|
|
</button>
|
|
)
|
|
}
|