1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 18:26:38 -04:00

consolidate mdx file parsing

This commit is contained in:
2022-01-03 17:53:47 -05:00
parent d2b71887b4
commit 3864a57d1a
9 changed files with 59 additions and 68 deletions

View File

@ -14,7 +14,7 @@ type ColorLinkProps = {
external?: boolean;
};
const ColorLink = ({ children, href, lightColor, darkColor, title, external = false }: ColorLinkProps) => {
const ColorLink = ({ href, title, lightColor, darkColor, external = false, children }: ColorLinkProps) => {
external = external || isAbsoluteUrl(href);
// spits out an alpha color in rgb() that's compatible with linear-gradient()