refactor(theme): move linkColor to palette

This commit is contained in:
unix
2020-04-11 07:41:43 +08:00
parent bf689b76d1
commit 1180f6f99d
5 changed files with 7 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ const Link = React.memo(React.forwardRef<HTMLAnchorElement, React.PropsWithChild
href, color, underline, pure, children, className, block, ...props
}, ref: React.Ref<HTMLAnchorElement>) => {
const theme = useTheme()
const linkColor = color || block ? theme.palette.success : 'inherit'
const linkColor = color || block ? theme.palette.link : 'inherit'
const padding = block ? theme.layout.gapQuarter : '0'
const decoration = underline ? 'underline' : 'none'