mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-25 21:05:36 +08:00
refactor(theme): move linkColor to palette
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user