forked from jquense/react-big-calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds currentTimeIndicator component to Calendar (#1)
- Loading branch information
1 parent
3a1a21b
commit e3eed70
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import PropTypes from 'prop-types' | ||
import React from 'react' | ||
|
||
const CurrentTimeIndicator = ({ position }) => ( | ||
<div className="rbc-current-time-indicator" style={{ top: `${position}%` }} /> | ||
) | ||
|
||
CurrentTimeIndicator.propTypes = { | ||
position: PropTypes.number, | ||
} | ||
|
||
export default CurrentTimeIndicator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters