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:
@@ -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>
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user