Skip to content

Commit

Permalink
fix: add fit to height (#4372)
Browse files Browse the repository at this point in the history
  • Loading branch information
Udit-takkar committed Sep 12, 2022
1 parent 5f3e9ef commit 869ebb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/components/v2/eventtype/EventLimitsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const EventLimitsTab = (props: Pick<EventTypeSetupInfered, "eventType">)
defaultValue={periodType?.type !== "UNLIMITED" ? "ROLLING" : "UNLIMITED"}
render={({ field: { value } }) => (
<Switch
fitToHeight={true}
checked={value !== "UNLIMITED"}
onCheckedChange={(bool) =>
formMethods.setValue("periodType", bool ? "ROLLING" : "UNLIMITED")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default function RecurringEventController({
<div className="flex space-x-3 ">
<Switch
name="requireConfirmation"
fitToHeight={true}
checked={recurringEventState !== null}
onCheckedChange={(e) => {
if (!e) {
Expand Down

0 comments on commit 869ebb0

Please sign in to comment.