1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-13 23:14:28 -04:00

all components should accept additional classnames

This commit is contained in:
2022-01-20 12:06:05 -05:00
parent 2162e9d563
commit 7e37adabc1
22 changed files with 150 additions and 86 deletions

View File

@@ -1,14 +1,16 @@
import classNames from "classnames";
import { OctocatOcticon } from "../Icons";
import styles from "./OctocatLink.module.css";
type Props = {
repo: string;
className?: string;
};
const OctocatLink = (props: Props) => (
<a className={styles.link} href={`https://github.com/${props.repo}`} target="_blank" rel="noopener noreferrer">
<OctocatOcticon fill="currentColor" />
const OctocatLink = ({ repo, className }: Props) => (
<a className={styles.link} href={`https://github.com/${repo}`} target="_blank" rel="noopener noreferrer">
<OctocatOcticon fill="currentColor" className={classNames("icon", className)} />
</a>
);