mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-16 20:05:31 -04:00
octicons weren't being tree-shaken -- import SVGs manually for now
This commit is contained in:
@@ -40,6 +40,9 @@
|
||||
|
||||
.octicon,
|
||||
.language_color {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
vertical-align: text-bottom;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
@@ -49,7 +52,7 @@
|
||||
height: 1.15em;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
top: 0.175em;
|
||||
vertical-align: text-top;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { intlFormat, formatDistanceToNowStrict, parseISO } from "date-fns";
|
||||
import { StarIcon, RepoForkedIcon } from "@primer/octicons-react";
|
||||
import { StarOcticon, ForkOcticon } from "../icons/octicons";
|
||||
|
||||
import styles from "./RepoCard.module.scss";
|
||||
|
||||
@@ -47,7 +47,7 @@ export default function RepoCard({ name, url, description, language, stars, fork
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<StarIcon size={16} className={styles.octicon} />
|
||||
<StarOcticon fill="currentColor" className={styles.octicon} />
|
||||
<span>{stars.toLocaleString("en-US")}</span>
|
||||
</a>
|
||||
</div>
|
||||
@@ -61,7 +61,7 @@ export default function RepoCard({ name, url, description, language, stars, fork
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<RepoForkedIcon size={16} className={styles.octicon} />
|
||||
<ForkOcticon fill="currentColor" className={styles.octicon} />
|
||||
<span>{forks.toLocaleString("en-US")}</span>
|
||||
</a>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user