Compare commits

..

2 Commits

Author SHA1 Message Date
EleanorMao
4c0628612f feat: add button type 2023-04-24 09:17:51 +08:00
EleanorMao
c196059515 feat: add link 2023-04-24 00:01:58 +08:00
3 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import React, { FC } from 'react'
import { Button as AntdButton, ButtonProps as AntdButtonProps } from 'antd'
export type ButtonProps = Omit<AntdButtonProps, 'danger' | 'ghost' | 'shape' | 'size' | 'type'> & {
type?: 'primary' | 'link' | 'text'
type?: 'primary' | 'default' | 'link' | 'text'
}
export const Button: FC<ButtonProps> = (props) => {
return <AntdButton type="primary" {...props} />

View File

@ -115,7 +115,7 @@ export const Header: FC<HeaderProps> = ({
<Breakpoint s up>
<StyledButton href={activeKitHref}>Activate Kit</StyledButton>
</Breakpoint>}
<StyledCartWrapper target="_blank" rel="noopener noreferrer">
<StyledCartWrapper target="_blank" rel="noopener noreferrer" href="https://ihealthlabs.com/products/checkmesafe-home-collection-kit-C2">
<Icon component={Cart} />
<StyledText>SHOP</StyledText>
</StyledCartWrapper>

View File

@ -7,6 +7,10 @@ html, body {
font-weight: 500 !important;
}
.ant-btn-default {
border-color: #FF5A0C;
}
.ant-btn.ant-btn-icon-only {
width: 50px !important;
height: 50px !important;