-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91a9c21
commit 026516e
Showing
5 changed files
with
146 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { useGetMatchQuery } from "@/services/matchesApi" | ||
import { ClubBadgeBg, ClubDetails, ClubName } from "../Calendar/CalendarStyle" | ||
import { MatchStatsStyle } from "./StatsStyle" | ||
import config from "@/config" | ||
|
||
declare type MatchStatsProps = { | ||
matchId: number | ||
homeScore: number | ||
awayScore: number | ||
} | ||
|
||
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} /> | ||
<ClubBadgeBg src={`${config.API_URL}/static/badges/${data?.home.externalId}.png`} /> | ||
</ClubDetails> | ||
<div className="score"> | ||
<b>{`${props.homeScore} - ${props.awayScore}`}</b> | ||
</div> | ||
<ClubDetails className="team"> | ||
<ClubBadgeBg src={`${config.API_URL}/static/badges/${data?.away.externalId}.png`} /> | ||
<ClubName className="team-name" fullName={data?.away.name} short={data?.away.short} /> | ||
</ClubDetails> | ||
</MatchStatsStyle> | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters