-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Setting a view as 'false' in views prop should turn it off #2316
Comments
You can hide the view by just not writing it, like: const {views, ...otherProps} = useMemo(() => ({
views: {
month: true,
week: CustomWeekView,
},
// ... other props
}), []) This is still a bug, since the documentation says you should be able to write |
Hi @bu6n , is this issue still active ? I want to work on this |
Yes this is still a bug if you wanna try to solve it! |
Great, can you assign me this issue? |
@bu6n I searched the codebase, i found this, there has no boolean type |
Hi @bu6n , is this issue still active ? I want to work on this.I already found solution. |
Can you make a PR and then someone will review? |
i am making it
…On Wed, Feb 15, 2023 at 5:58 PM Billy ***@***.***> wrote:
Can you make a PR and then someone will review?
—
Reply to this email directly, view it on GitHub
<#2316 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF45Y2ZVVXKGPPVU4DVJPIDWXTDWRANCNFSM6AAAAAATARM5DA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Check that this is really a bug
Reproduction link
https://codesandbox.io/s/react-big-calendar-example-forked-o0b8z0?file=/src/App.js
Bug description
The documentation for creating a custom view shows this pattern being used:
This makes it seem like if I pass
day: false
, the day view will disappear. However, that's not the case.I would be happy to explore the codebase a little and fix this. Lemme know.
Expected Behavior
The day view should disappear when
day: false
is passed to theviews
prop.Actual Behavior
The day view still appears, and it displays the error:
View.title is not a function
because it is still expecting for there to be a view there.react-big-calendar version
1.5.0
React version
18.2.0
Platform/Target and Browser Versions
Firefox 104.0
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: