add free plan (#549)

- add new fields to support this
- when free:
  - fade out all event types after first
  - hide events after first on booking page
  - make booking page after the first one 404 if accessed directly
- add e2e tests
This commit is contained in:
Alex Johansson authored and GitHub committed 2021-09-06 13:51:15 +00:00
1 parent fa35af7bd8
commit 7e6e935ed3
29 files changed
+880 -261

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ export const Button = function Button(props: ButtonProps) {
? "text-gray-400 bg-transparent"
: "text-red-700 bg-transparent hover:bg-red-100 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:bg-red-50 focus:ring-red-500"),
// set not-allowed cursor if disabled
disabled && "cursor-not-allowed",
loading ? "cursor-wait" : disabled ? "cursor-not-allowed" : "",
props.className
),
// if we click a disabled button, we prevent going through the click handler