Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Added possibility to style Timebar Cells via JS #103

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yorickreum
Copy link

See subject, added possibility to style Timebar Cells via JS (to mark different time spans).

@@ -11,7 +11,7 @@ const TrackKey = ({ track, toggleOpen, clickTrackButton }) => {
hasButton,
sideComponent
} = track
const isExpandable = isOpen !== undefined
const isExpandable = (isOpen !== undefined) && tracks && (tracks !== undefined) && tracks.length > 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure you can rely on this as tracks can be dynamically loaded i.e. only loaded in when you hit toggleOpen (could be wrong - been a while since I looked at this code)

@atkinchris atkinchris mentioned this pull request May 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants