Skip to content

Commit 64aec40

Browse files
committed
style fix
1 parent 7769538 commit 64aec40

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

src/features/repo-list/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ const RepoList = ({ username }: Props) => {
5353
/>
5454
))
5555
) : (
56-
<h2 className="repo-list__placeholder">
57-
<Empty description={false} />
58-
{username} doesn’t have any repositories yet.
59-
</h2>
56+
<Empty
57+
className="repo-list__placeholder"
58+
description={<h2>{username} doesn’t have any repositories yet.</h2>}
59+
/>
6060
)}
6161
</div>
6262
<div className="repo-list__pagination mt-6">

src/features/user-info/index.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@
3333
line-height: 28px;
3434
}
3535

36-
&__btn.follow,
37-
&__btn.unfollow,
38-
&__btn.edit {
39-
display: block;
36+
&__btn {
37+
display: block !important;
4038
margin-top: 10px;
4139
transition: 0.4s;
4240
}

src/features/user-info/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ const UserInfo = ({ username }: Props) => {
3333
<h4 className="user-info__username">{username}</h4>
3434
<span className="user-info__bio">{bio}</span>
3535
{isViewer ? (
36-
<Button className="user-info__btn edit" disabled title="While not available">
36+
<Button className="user-info__btn" disabled title="While not available">
3737
Edit profile
3838
</Button>
3939
) : (
4040
<Button
4141
type={viewerIsFollowing ? "primary" : "default"}
42-
className={`user-info__btn ${label}`}
42+
className="user-info__btn"
4343
onClick={() => following.handle(id, viewerIsFollowing)}
4444
loading={following.debouncedLodaing}
4545
>

0 commit comments

Comments
 (0)