Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 4a8aaaa

Browse files
committed
add checkIfRunning to proptypes, lint
1 parent f131d28 commit 4a8aaaa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/components/Settings/scheduler/presentational/timestamp.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ const formatRelative = ({value, checkIfRunning}) => {
3434
};
3535

3636
const Timestamp = props => {
37-
const {value, checkIfRunning} = props;
37+
const {value, checkIfRunning, inline} = props;
3838
return (
3939
<React.Fragment>
40-
<span data-tip={formatAbsolute(props.value, props.inline)}>{formatRelative({value, checkIfRunning})}</span>
40+
<span data-tip={formatAbsolute(value, inline)}>{formatRelative({value, checkIfRunning})}</span>
4141
<i style={{fontSize: '12px', color: 'grey', paddingLeft: '10px'}}>({toIso(props.value)})</i>
4242
<ReactToolTip />
4343
</React.Fragment>
@@ -46,6 +46,7 @@ const Timestamp = props => {
4646

4747
Timestamp.propTypes = {
4848
value: PropTypes.number,
49+
checkIfRunning: PropTypes.bool,
4950
inline: PropTypes.bool
5051
};
5152

app/components/Settings/scheduler/scheduler.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class Scheduler extends Component {
352352
}
353353

354354
componentDidUpdate() {
355-
ReactToolTip.rebuild()
355+
ReactToolTip.rebuild();
356356
}
357357

358358
handleSearchChange(e) {

0 commit comments

Comments
 (0)