Skip to content

Commit

Permalink
demo-run: applied changes for [codemod-com/cal.com-demo] repo, using …
Browse files Browse the repository at this point in the history
…jscodeshift engine!
  • Loading branch information
Ubuntu committed Jun 20, 2024
1 parent 7a57a4e commit 607a3d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/web/components/v2/apps/DestinationCalendarSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const DestinationCalendarSelector = ({
})`
: "";
return (
<div
(<div
className="relative flex items-center"
title={`${t("select_destination_calendar")}: ${selectedOption?.label || ""}`}>
<Select
Expand Down Expand Up @@ -142,7 +142,7 @@ const DestinationCalendarSelector = ({
IndicatorSeparator: () => null,
}}
/>
</div>
</div>)
);
};

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 @@ -10,13 +10,13 @@ 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

0 comments on commit 607a3d0

Please sign in to comment.