Added "New Event Type" button on Team settings (#1411)

- Moved CreateNewEventButton in pages/event-types/index to dedicated component as this is used in two places now.
- Implemented CreateEventType button on Team settings screen and replaced old markup in on event types page with new component.
- Upgrade vanilla JS inputs to library primitives.
- Created TextArea & TextAreaField components in components/form.
- [Bugfix] Changed back button behavior in Shell to have a specified back path as CreateEventType's modal interfered with the router.goBack behavior.
- Ensure modal data is preserved in URL params for router accuracy and removed on exit.
This commit is contained in:
Jamie Pine authored and GitHub committed 2022-01-12 01:29:20 -08:00
1 parent 59d4d92b52
commit 70683a89b9
8 files changed
+334 -252

No files matched your search

@@ -33,7 +33,7 @@ export function TeamAvailabilityPage() {
return (
<Shell
showBackButton={!errorMessage}
backPath={!errorMessage ? `/settings/teams/${team?.id}` : undefined}
heading={!isFreeUser && team?.name}
flexChildrenContainer
subtitle={team && !isFreeUser && "Your team's availability at a glance"}