react-live-clock
Advanced tools
Comparing version 5.0.13 to 5.0.14
@@ -36,3 +36,5 @@ 'use strict'; | ||
onChange = props.onChange, | ||
blinking = props.blinking; | ||
blinking = props.blinking, | ||
className = props.className, | ||
style = props.style; | ||
@@ -101,4 +103,6 @@ var _useState = (0, _react.useState)(Date.now()), | ||
{ | ||
className: className, | ||
date: date, | ||
format: formatToUse, | ||
style: style, | ||
tz: timezone }, | ||
@@ -110,5 +114,7 @@ currentTime | ||
ReactLiveClock.propTypes = { | ||
className: _propTypes2.default.string, | ||
date: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]), | ||
blinking: _propTypes2.default.bool, | ||
format: _propTypes2.default.string, | ||
style: _propTypes2.default.object, | ||
interval: _propTypes2.default.number, | ||
@@ -115,0 +121,0 @@ ticking: _propTypes2.default.bool, |
{ | ||
"name": "react-live-clock", | ||
"version": "5.0.13", | ||
"version": "5.0.14", | ||
"description": "React Live Clock", | ||
@@ -44,4 +44,4 @@ "main": "lib/index.js", | ||
"cf-react-component-template": "0.1.8", | ||
"eslint": "7.14.0", | ||
"eslint-plugin-react": "7.21.5", | ||
"eslint": "7.18.0", | ||
"eslint-plugin-react": "7.22.0", | ||
"moment": "2.29.1", | ||
@@ -55,5 +55,5 @@ "moment-timezone": "0.5.32", | ||
"react-highlight.js": "1.0.7", | ||
"react-moment": "1.0.0", | ||
"react-moment": "1.1.1", | ||
"react-router-dom": "5.2.0" | ||
} | ||
} |
@@ -7,3 +7,3 @@ import React, {useState, useEffect} from 'react'; | ||
export default function ReactLiveClock(props) { | ||
const {timezone, date, format, interval, ticking, onChange, blinking} = props; | ||
const {timezone, date, format, interval, ticking, onChange, blinking, className, style} = props; | ||
const [currentTime, setCurrentTime] = useState(Date.now()); | ||
@@ -60,4 +60,6 @@ const [formatToUse, setFormatToUse] = useState(format); | ||
<Moment | ||
className={className} | ||
date={date} | ||
format={formatToUse} | ||
style={style} | ||
tz={timezone}> | ||
@@ -70,2 +72,3 @@ {currentTime} | ||
ReactLiveClock.propTypes = { | ||
className: PropTypes.string, | ||
date: PropTypes.oneOfType([ | ||
@@ -77,2 +80,3 @@ PropTypes.number, | ||
format: PropTypes.string, | ||
style: PropTypes.object, | ||
interval: PropTypes.number, | ||
@@ -79,0 +83,0 @@ ticking: PropTypes.bool, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8094938
81488