Openstatus www.openstatus.dev

fix: small stuff

authored by

Maximilian Kaske and committed by
Maximilian Kaske
a4307260 7b6d3e5f

+9 -1
+2
packages/emails/emails/_components/footer.tsx
··· 1 + /** @jsxImportSource react */ 2 + 1 3 import { Link, Section, Text } from "@react-email/components"; 2 4 import { styles } from "./styles"; 3 5
+6 -1
packages/emails/emails/_components/layout.tsx
··· 1 + /** @jsxImportSource react */ 2 + 1 3 import { Container, Img, Link, Section } from "@react-email/components"; 4 + import type * as React from "react"; 2 5 import { Footer } from "./footer"; 3 6 import { styles } from "./styles"; 4 7 ··· 7 10 img?: { 8 11 src: string; 9 12 alt: string; 13 + href: string; 10 14 }; 11 15 } 12 16 13 17 const defaultImg = { 14 18 src: "https://openstatus.dev/assets/logos/OpenStatus.png", 15 19 alt: "OpenStatus", 20 + href: "https://openstatus.dev", 16 21 }; 17 22 18 23 export function Layout({ children, img = defaultImg }: LayoutProps) { 19 24 return ( 20 25 <Container style={styles.container}> 21 - <Link href="https://openstatus.dev"> 26 + <Link href={img.href}> 22 27 <Img src={img.src} width="36" height="36" alt={img.alt} /> 23 28 </Link> 24 29 <Section style={styles.section}>{children}</Section>
+1
packages/emails/emails/page-subscription.tsx
··· 21 21 .object({ 22 22 src: z.string(), 23 23 alt: z.string(), 24 + href: z.string(), 24 25 }) 25 26 .optional(), 26 27 });