refactor: deno lint fix slow-type-missing-explicit-return-type
This commit is contained in:
parent
54ceae3e71
commit
cbb26e87ce
|
@ -28,7 +28,7 @@ function MagicLink(
|
||||||
ip?: string
|
ip?: string
|
||||||
endpoint: string
|
endpoint: string
|
||||||
},
|
},
|
||||||
) {
|
): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<Html lang='fr' style={{ fontSize: '14px' }}>
|
<Html lang='fr' style={{ fontSize: '14px' }}>
|
||||||
<BaseStyle />
|
<BaseStyle />
|
||||||
|
|
|
@ -2,10 +2,11 @@ import { Body, Container, Html, Markdown, Preview } from 'jsx-email'
|
||||||
import { Signature } from './components/Signature.tsx'
|
import { Signature } from './components/Signature.tsx'
|
||||||
import type { Template } from '../types.ts'
|
import type { Template } from '../types.ts'
|
||||||
import { BaseStyle, bodyCss, messageCss, textCss } from './styles/base.tsx'
|
import { BaseStyle, bodyCss, messageCss, textCss } from './styles/base.tsx'
|
||||||
|
import type { JSX } from 'preact'
|
||||||
|
|
||||||
function Message(
|
function Message(
|
||||||
{ summary, body }: { summary?: string; body: string },
|
{ summary, body }: { summary?: string; body: string },
|
||||||
) {
|
): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<Html lang='fr' style={{ fontSize: '14px' }}>
|
<Html lang='fr' style={{ fontSize: '14px' }}>
|
||||||
<BaseStyle />
|
<BaseStyle />
|
||||||
|
|
|
@ -29,7 +29,7 @@ function Welcome(
|
||||||
login: string
|
login: string
|
||||||
endpoint?: string
|
endpoint?: string
|
||||||
},
|
},
|
||||||
) {
|
): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<Html lang='fr' style={{ fontSize: '14px' }}>
|
<Html lang='fr' style={{ fontSize: '14px' }}>
|
||||||
<BaseStyle />
|
<BaseStyle />
|
||||||
|
|
Loading…
Reference in a new issue