Skip to content
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

[undefined]: Codemod changes for codemod-com/cal.com-demo. #186

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo
: await getInitialProps(fullUrl);

return (
<html
(<html
lang={locale}
dir={direction}
style={embedColorScheme ? { colorScheme: embedColorScheme as string } : undefined}
Expand Down Expand Up @@ -109,6 +109,6 @@ export default async function RootLayout({ children }: { children: React.ReactNo
)}
{children}
</body>
</html>
</html>)
);
}
4 changes: 2 additions & 2 deletions apps/web/pages/auth/forgot-password/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function Page({ requestId, isRequestExpired, csrfToken }: Props)
};

return (
<AuthContainer
(<AuthContainer
showLogo
title={t("reset_password")}
description={t("change_your_password")}
Expand Down Expand Up @@ -137,7 +137,7 @@ export default function Page({ requestId, isRequestExpired, csrfToken }: Props)
<Success />
</>
)}
</AuthContainer>
</AuthContainer>)
);
}

Expand Down
8 changes: 4 additions & 4 deletions packages/emails/src/renderEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ async function renderEmail<K extends keyof typeof templates>(
return (
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
ReactDOMServer.renderToStaticMarkup(Component(props))
(ReactDOMServer.renderToStaticMarkup(Component(props))
// Remove `<RawHtml />` injected scripts
.replace(/<script><\/script>/g, "")
.replace(
"<html>",
`<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">`
)
"<html>",
`<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">`
))
);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/features/calendars/DestinationCalendarSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const DestinationCalendarSelector = ({
const queryDestinationCalendar = query.data.destinationCalendar;

return (
<div
(<div
className="relative table w-full table-fixed"
title={`${t("create_events_on")}: ${selectedOption?.label || ""}`}>
<Select
Expand Down Expand Up @@ -181,7 +181,7 @@ const DestinationCalendarSelector = ({
{hideAdvancedText ? null : (
<p className="text-sm leading-tight">{t("you_can_override_calendar_in_advanced_tab")}</p>
)}
</div>
</div>)
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
const importRef = useRef<HTMLInputElement | null>(null);

return (
<Dialog
(<Dialog
name="inviteModal"
open={props.isOpen}
onOpenChange={() => {
Expand Down Expand Up @@ -437,6 +437,6 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
</DialogFooter>
</Form>
</DialogContent>
</Dialog>
</Dialog>)
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function TimezoneSelectComponent({
}, [components]);

return (
<BaseSelect
(<BaseSelect
value={value}
className={className}
isLoading={isPending}
Expand Down Expand Up @@ -128,7 +128,7 @@ export function TimezoneSelectComponent({
multiValueRemove: () => "text-default py-auto ml-2",
noOptionsMessage: () => "h-12 py-2 flex items-center justify-center",
}}
/>
/>)
);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/ui/form/PhoneInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function BasePhoneInput({ name, className = "", onChange, value, ...rest }: Phon
const defaultCountry = useDefaultCountry();

return (
<PhoneInput
(<PhoneInput
{...rest}
value={value ? value.trim().replace(/^\+?/, "+") : undefined}
country={value ? undefined : defaultCountry}
Expand Down Expand Up @@ -55,7 +55,7 @@ function BasePhoneInput({ name, className = "", onChange, value, ...rest }: Phon
marginLeft: "-4px",
}}
dropdownStyle={{ width: "max-content" }}
/>
/>)
);
}

Expand Down
Loading