Skip to content

Commit

Permalink
fix(matchStats): remove unused props
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassimoen committed Dec 4, 2023
1 parent 0695d65 commit ce260c0
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions src/components/Stats/MatchStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,10 @@ declare type MatchStatsProps = {
export const MatchStats = (props: MatchStatsProps) => {
const { data } = useGetMatchQuery(props.matchId);
return (
// <StatsStyle>
// <Row className="stat-row">
// <Col lg={11} md={11} sm={11} xs={11}>
// {/* <Col> */}
// <ClubDetails left>
// <ClubName className="team-name" fullName={data?.home.name} short={data?.home.short} />
// <ClubBadgeBg src={`${config.API_URL}/static/badges/${data?.home.externalId}.png`} />
// </ClubDetails>
// </Col>
// <Col lg={2} md={2} sm={2} xs={2}>
// <b className="score started">{ `${props.homeScore} - ${props.awayScore}` }</b>
// </Col>
// <Col lg={11} md={11} sm={11} xs={11}>
// <ClubDetails>
// <ClubBadgeBg src={`${config.API_URL}/static/badges/${data?.away.externalId}.png`} />
// <ClubName className="team-name" fullName={data?.away.name} short={data?.away.short} />
// </ClubDetails>
// </Col>
// </Row>
// </StatsStyle>
<MatchStatsStyle>
<ClubDetails className="team" left>
<ClubName className="team-name" fullName={data?.home.name} short={data?.home.short} />
<ClubDetails className="team">
<ClubBadgeBg src={`${props.assetsCdn}/badges/${data?.home.id}.png`} />
<ClubName className="team-name" fullName={data?.home.name} short={data?.home.short} />
</ClubDetails>
<div className="score">
<b>{`${props.homeScore} - ${props.awayScore}`}</b>
Expand Down

0 comments on commit ce260c0

Please sign in to comment.