🚸 Improve magic link sign in experience

New email and sign in feedback
This commit is contained in:
Baptiste Arnaud
2023-03-13 11:20:28 +01:00
parent 4ae9ea32e4
commit 48db171c1b
7 changed files with 129 additions and 37 deletions

View File

@@ -1,14 +1,14 @@
import React from 'react'
import { MjmlButton } from '@faire/mjml-react'
import { IMjmlButtonProps, MjmlButton } from '@faire/mjml-react'
import { blue, grayLight } from '../theme'
import { leadingTight, textBase, borderBase } from '../theme'
type ButtonProps = {
link: string
children: React.ReactNode
}
} & IMjmlButtonProps
export const Button = ({ link, children }: ButtonProps) => (
export const Button = ({ link, children, ...props }: ButtonProps) => (
<MjmlButton
lineHeight={leadingTight}
fontSize={textBase}
@@ -20,6 +20,7 @@ export const Button = ({ link, children }: ButtonProps) => (
backgroundColor={blue}
color={grayLight}
borderRadius={borderBase}
{...props}
>
{children}
</MjmlButton>