Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Commit 31c7fac

Browse files
committed
minor changes
1 parent 092a653 commit 31c7fac

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/star/star.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
* @function Star
33
*/
44
import * as React from "react";
5-
import styles from "../styles.css";
5+
import classes from "../styles.css";
66
import StarSvg from "./starIcon";
77

88
export interface IPropTypes { repo: string; }
99

1010
export default function Star(props: IPropTypes) {
1111
const { repo } = props;
1212
return (
13-
<div className={styles.root}>
14-
<button title={`Star ${repo}`} className={styles.button}>
13+
<div className={classes.root}>
14+
<button title={`Star ${repo}`} className={classes.button}>
1515
<StarSvg />
1616
Star
1717
</button>
1818
<a
19-
className={styles.count}
19+
className={classes.count}
2020
href={`https://github.com/${repo}/stargazers`}
2121
aria-label={`${1} user starred this repository`}
2222
target="_blank"

src/star/starIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import * as React from "react";
2-
import styles from "../styles.css";
2+
import classes from "../styles.css";
33

44
export default function StarIcon() {
55
return (
66
<svg
7-
className={styles.svgicon}
7+
className={classes.svgicon}
88
viewBox="0 0 14 16"
99
version="1.1"
1010
width="14"

src/styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
}
99

1010
.button {
11+
color: inherit;
1112
font-size: 12px;
1213
line-height: 20px;
1314
padding: 3px 10px;

0 commit comments

Comments
 (0)