Skip to content

Calendar premium views #806

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

Merged
merged 4 commits into from
Apr 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix:removing invalid licence alert
  • Loading branch information
freddysundowner committed Apr 11, 2024
commit 040daf0dbc7da975a1c7357c7e3698f4b7723e2d
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ const childrenMap = {
dayMaxEvents: withDefault(NumberControl, 2),
eventMaxStack: withDefault(NumberControl, 0),
style: styleControl(CalendarStyle),
licenceKey: withDefault(StringControl, ""),
licenceKey: withDefault(
StringControl,
"CC-Attribution-NonCommercial-NoDerivatives"
),
};

let CalendarBasicComp = (function () {
Expand Down Expand Up @@ -349,6 +352,9 @@ let CalendarBasicComp = (function () {
interactionPlugin,
listPlugin,
momentPlugin,
resourceTimelinePlugin,
resourceTimeGridPlugin,
adaptivePlugin,
];
const filteredPlugins = plugins.filter((plugin) => {
if (licenceKey === "") {
Expand All @@ -361,6 +367,8 @@ let CalendarBasicComp = (function () {
return true;
}
});
console.log(filteredPlugins);

return (
<Wrapper
ref={ref}
Expand Down