Skip to content

Commit

Permalink
Remove useless changes
Browse files Browse the repository at this point in the history
  • Loading branch information
martmull committed Sep 11, 2024
1 parent 77e78a8 commit 2f4a6de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions packages/twenty-emails/src/components/BaseEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@ import { Logo } from 'src/components/Logo';

type BaseEmailProps = PropsWithChildren<{
width?: number;
withLogo?: boolean;
}>;

export const BaseEmail = ({
children,
width,
withLogo = true,
}: BaseEmailProps) => {
export const BaseEmail = ({ children, width }: BaseEmailProps) => {
return (
<Html lang="en">
<BaseHead />
<Container width={width || 290}>
{withLogo && <Logo />}
<Logo />
{children}
</Container>
</Html>
Expand Down
2 changes: 1 addition & 1 deletion packages/twenty-emails/src/components/BaseHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { emailTheme } from 'src/common-style';
export const BaseHead = () => {
return (
<Head>
<title>An email from Twenty</title>
<title>Twenty email</title>
<Font
fontFamily={emailTheme.font.family}
fallbackFontFamily="sans-serif"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const WorkflowActionEmail = ({
callToAction,
}: WorkflowActionEmailProps) => {
return (
<BaseEmail withLogo={false}>
<BaseEmail>
{title && <Title value={title} />}
{dangerousHTML && (
<div dangerouslySetInnerHTML={{ __html: dangerousHTML }} />
Expand Down

0 comments on commit 2f4a6de

Please sign in to comment.