fixed warning

This commit is contained in:
mrjvs 2021-10-25 22:06:40 +02:00
parent 7096e544f4
commit 17b4a4b790
2 changed files with 5 additions and 5 deletions

View File

@ -12,16 +12,16 @@
width: 100%;
max-width: 624px;
}
.cardView nav a {
.cardView nav span {
padding: 8px 16px;
margin-right: 10px;
border-radius: 4px;
color: var(--text);
}
.cardView nav a:not(.selected-link) {
.cardView nav span:not(.selected-link) {
cursor: pointer;
}
.cardView nav a.selected-link {
.cardView nav span.selected-link {
background: var(--card);
color: var(--button-text);
font-weight: bold;

View File

@ -215,9 +215,9 @@ export function SearchView() {
{/* Nav */}
<nav>
<a className={page === 'search' ? 'selected-link' : ''} onClick={() => setPage('search')} href>Search</a>
<span className={page === 'search' ? 'selected-link' : ''} onClick={() => setPage('search')}>Search</span>
{continueWatching.length > 0 ?
<a className={page === 'watching' ? 'selected-link' : ''} onClick={() => setPage('watching')} href>Continue watching</a>
<span className={page === 'watching' ? 'selected-link' : ''} onClick={() => setPage('watching')}>Continue watching</span>
: ''}
</nav>