@@ -4,6 +4,7 @@ import styled, { css } from "styled-components";
44import { landscapeStyle } from "styles/landscapeStyle" ;
55import { hoverShortTransitionTiming } from "styles/commonStyles" ;
66
7+ import HeaderScore from "../Header/Score" ;
78import HeaderCoherence from "../Header/Coherence" ;
89import HeaderRewards from "../Header/Rewards" ;
910
@@ -12,6 +13,7 @@ import JurorLevel from "./JurorLevel";
1213import JurorTitle from "./JurorTitle" ;
1314import Rank from "./Rank" ;
1415import Rewards from "./Rewards" ;
16+ import Score from "./Score" ;
1517
1618const Container = styled . div `
1719 ${ hoverShortTransitionTiming }
@@ -49,32 +51,40 @@ const TopSide = styled.div`
4951const RankAndTitle = styled . div `
5052 display: flex;
5153 flex-direction: row;
54+ align-items: center;
5255 gap: 8px;
5356` ;
5457
55- const HeaderRewardsAndRewards = styled . div `
58+ const BottomSide = styled . div `
59+ width: 100%;
5660 display: flex;
5761 flex-direction: column;
58- width: 100% ;
62+ justify-content: space-between ;
5963 gap: 8px;
6064` ;
6165
62- const BottomSide = styled . div `
63- width: 100%;
66+ const HeaderScoreAndScore = styled . div `
6467 display: flex;
68+ width: 100%;
6569 flex-direction: row;
66- justify-content: space-between;
70+ align-items: center;
71+ gap: 8px;
6772` ;
6873
6974const HeaderCoherenceAndCoherence = styled . div `
7075 display: flex;
71- flex-direction: column;
72- align-items: flex-end;
76+ width: 100%;
77+ flex-direction: row;
78+ align-items: center;
7379 gap: 8px;
80+ ` ;
7481
75- svg {
76- margin-right: 0;
77- }
82+ const HeaderRewardsAndRewards = styled . div `
83+ display: flex;
84+ width: 100%;
85+ flex-direction: row;
86+ align-items: center;
87+ gap: 8px;
7888` ;
7989
8090interface IMobileCard {
@@ -96,20 +106,24 @@ const MobileCard: React.FC<IMobileCard> = ({
96106 < Container >
97107 < TopSide >
98108 < RankAndTitle >
99- { rank ? < Rank rank = { rank } /> : null }
100- < JurorTitle address = { address } />
109+ { rank ? < Rank { ... { rank } } /> : null }
110+ < JurorTitle { ... { address } } />
101111 </ RankAndTitle >
102112 < JurorLevel coherenceScore = { Number ( coherenceScore ) } />
103113 </ TopSide >
104114 < BottomSide >
105- < HeaderRewardsAndRewards >
106- < HeaderRewards />
107- < Rewards address = { address } />
108- </ HeaderRewardsAndRewards >
115+ < HeaderScoreAndScore >
116+ < HeaderScore />
117+ < Score { ... { coherenceScore } } />
118+ </ HeaderScoreAndScore >
109119 < HeaderCoherenceAndCoherence >
110120 < HeaderCoherence />
111121 < Coherence { ...{ totalCoherentVotes, totalResolvedVotes } } />
112122 </ HeaderCoherenceAndCoherence >
123+ < HeaderRewardsAndRewards >
124+ < HeaderRewards />
125+ < Rewards { ...{ address } } />
126+ </ HeaderRewardsAndRewards >
113127 </ BottomSide >
114128 </ Container >
115129 ) ;
0 commit comments