Skip to content

Commit af82438

Browse files
committed
minor ui improvements
1 parent 92ebe2a commit af82438

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/Navbar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ function Navbar({ loggedin }) {
4040
<input type="text" className="form-control form-control-sm" placeholder="Search" />
4141
</form>
4242
{loggedin === 'true' ? (
43-
<Link className="btn btn-primary clk" to="/profile">Profile</Link>
43+
<Link className="btn btn-primary clk" to="/profile">Profile </Link>
4444
) : (
45-
<Link className="btn btn-primary clk" to="/login">Sign up</Link>
45+
<Link className="btn btn-primary clk" to="/login">Sign up </Link>
4646
)}
4747
</div>
4848
</div>

src/components/profile.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ function Profile() {
5454
</button>
5555
</>
5656
) : (
57-
<p>Loading...</p>
57+
<div className="spinner-border text-primary" role="status">
58+
<span className="visually-hidden">Loading...</span>
59+
</div>
5860
)}
5961
</div>
6062
);

0 commit comments

Comments
 (0)