Skip to content

Commit 0f5705c

Browse files
authored
Moved the theme button into navbar
Improved UI
1 parent ad9df97 commit 0f5705c

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/Components/Navigation.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,20 @@ const Navigation = () => {
3939
<input className="form-control mr-sm-2" type="search" placeholder="Search" />
4040
<button className="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
4141
</form>
42+
<button
43+
className="btn btn-outline-success btn-sm d-block h-75 mr-3"
44+
type="button"
45+
onClick={() => changemode()}
46+
style={{ marginLeft: "12px" }}
47+
>
48+
Switch to {currentmode}
49+
</button>
4250
<Link to="/login">
4351
<button className="btn btn-login ml-2">Login</button>
4452
</Link>
4553
</div>
4654
</nav>
4755
</div>
48-
<button
49-
className="btn btn-outline-success btn-sm d-block h-75 mr-3"
50-
type="button"
51-
onClick={() => changemode()}
52-
>
53-
Switch to {currentmode}
54-
</button>
5556
</div>
5657
);
5758
};

0 commit comments

Comments
 (0)