mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-31 04:45:22 -04:00
update component prop types to use JSX.IntrinsicElements
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { memo } from "react";
|
||||
import css from "styled-jsx/css";
|
||||
import classNames from "classnames";
|
||||
import Link, { Props as CustomLinkProps } from "../Link/Link";
|
||||
import Link, { CustomLinkProps } from "../Link/Link";
|
||||
|
||||
type Props = CustomLinkProps & {
|
||||
type ColorfulLinkProps = CustomLinkProps & {
|
||||
lightColor: string;
|
||||
darkColor: string;
|
||||
};
|
||||
@@ -21,7 +21,7 @@ const getLinearGradient = (hex: string, alpha = 0.4) => {
|
||||
return `linear-gradient(${rgbaString},${rgbaString})`;
|
||||
};
|
||||
|
||||
const ColorfulLink = ({ lightColor, darkColor, className, ...rest }: Props) => {
|
||||
const ColorfulLink = ({ lightColor, darkColor, className, ...rest }: ColorfulLinkProps) => {
|
||||
const { className: underlineClassName, styles: underlineStyles } = css.resolve`
|
||||
a {
|
||||
color: ${lightColor};
|
||||
|
||||
Reference in New Issue
Block a user