Skip to content

Commit

Permalink
[Package]: migrate ClinvarStars to TypeScript (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
raskolnikov-rodion committed Oct 25, 2023
1 parent 4bf695f commit 9b2c123
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faStar as faStarSolid } from "@fortawesome/free-solid-svg-icons";
import { faStar } from "@fortawesome/free-regular-svg-icons";

type ClinvarStarsProps = {
num: number;
length?: number;
};

const useStyles = makeStyles((theme) => ({
star: {
color: theme.palette.primary.main,
},
}));

function ClinvarStars({ num, length = 4 }) {
function ClinvarStars({ num, length = 4 }: ClinvarStarsProps) {

Check warning on line 17 in packages/ui/src/components/ClinvarStars.tsx

View workflow job for this annotation

GitHub Actions / Build genetics

Missing return type on function

Check warning on line 17 in packages/ui/src/components/ClinvarStars.tsx

View workflow job for this annotation

GitHub Actions / Build platform

Missing return type on function
const classes = useStyles();

const stars = [];
Expand Down

0 comments on commit 9b2c123

Please sign in to comment.