Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added component override for time gutter wrapper #1761

Conversation

zshannon
Copy link

No description provided.

Copy link
Contributor

@dhruvgoel92 dhruvgoel92 left a comment

Choose a reason for hiding this comment

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

A simple story using the wrapper might be useful. Let me know if I can help in anyway, happy to contribute.

return (
<div className="rbc-time-gutter rbc-time-column">
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can keep this div as is and create a wrapper with default </> around it? If someone wants to override the class names, they will be able to.

return (
<div className="rbc-time-gutter rbc-time-column">
<Wrapper className="rbc-time-gutter rbc-time-column">
{this.slotMetrics.groups.map((grp, idx) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We can pass this.slotMetrics as an argument to the wrapper to make it more powerful. A good use case for this might be for a wrapper to render "multiple" TimeSlotGroup to support multi-timezone time view.

@dhruvgoel92
Copy link
Contributor

@zshannon will it be okay with you if I collaborate on this PR and take it forward?

@zshannon
Copy link
Author

yup, i'm not going to add anymore here. good luck!

@dhruvgoel92
Copy link
Contributor

I have build on this here: #2236

I think we can close this PR.

@cutterbl cutterbl closed this Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants