mirror of
https://github.com/status-im/fathom.git
synced 2025-03-03 12:30:29 +00:00
19 lines
318 B
JavaScript
19 lines
318 B
JavaScript
'use strict';
|
|
|
|
import Pikaday from 'pikaday';
|
|
import { h, Component } from 'preact';
|
|
|
|
class Pikadayer extends Component {
|
|
componentDidMount() {
|
|
new Pikaday({
|
|
field: this.base,
|
|
onSelect: this.props.onSelect,
|
|
})
|
|
}
|
|
render(props) {
|
|
return <input {...props} />
|
|
}
|
|
}
|
|
|
|
export default Pikadayer
|