Skip to content

Commit 0870aa9

Browse files
committed
feat(user): Make badges the same with repo profile
1 parent 9711ad1 commit 0870aa9

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

src/components/user-profile.component.js

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,19 @@ const UnitText = styled.Text`
7575
font-size: ${normalize(10)};
7676
${fonts.fontPrimary};
7777
`;
78+
const UnitStatusWrapper = styled.View`
79+
padding: 2px;
80+
margin-top: 5;
81+
margin-left: 20;
82+
margin-right: 20;
83+
border-radius: 5;
84+
background-color: ${colors.lighterBoldGreen};
85+
`;
7886
const UnitStatus = styled.Text`
7987
text-align: center;
80-
color: ${colors.lighterBoldGreen};
88+
color: ${colors.white};
8189
font-size: ${normalize(8)};
82-
${fonts.fontPrimary};
83-
padding-top: 3;
84-
padding-bottom: 3;
85-
margin-top: 5;
86-
margin-left: 17;
87-
margin-right: 17;
88-
border-width: 0.5;
89-
border-radius: 5;
90-
border-color: ${colors.lighterBoldGreen};
91-
justify-content: center;
90+
${fonts.fontPrimaryBold};
9291
`;
9392

9493
const maxLoadingConstraints = {
@@ -207,9 +206,11 @@ export class UserProfile extends Component {
207206
{translate('user.followers.text', locale)}
208207
</UnitText>
209208
{isFollowing && (
210-
<UnitStatus>
211-
{translate('user.following.followingYou', locale)}
212-
</UnitStatus>
209+
<UnitStatusWrapper>
210+
<UnitStatus>
211+
{translate('user.following.followingYou', locale)}
212+
</UnitStatus>
213+
</UnitStatusWrapper>
213214
)}
214215
</Unit>
215216
)}
@@ -237,9 +238,11 @@ export class UserProfile extends Component {
237238
{translate('user.following.text', locale)}
238239
</UnitText>
239240
{isFollower && (
240-
<UnitStatus>
241-
{translate('user.followers.followsYou')}
242-
</UnitStatus>
241+
<UnitStatusWrapper>
242+
<UnitStatus>
243+
{translate('user.followers.followsYou')}
244+
</UnitStatus>
245+
</UnitStatusWrapper>
243246
)}
244247
</Unit>
245248
)}

0 commit comments

Comments
 (0)