Clippy
This commit is contained in:
@@ -2,7 +2,6 @@ use yew::prelude::*;
|
||||
use yew_router::prelude::*;
|
||||
|
||||
use crate::api;
|
||||
use crate::components::watch_indicator::WatchIndicator;
|
||||
use crate::pages::Route;
|
||||
use crate::types::ArtistListItem;
|
||||
|
||||
@@ -73,8 +72,7 @@ pub fn library_page() -> Html {
|
||||
<td>
|
||||
if a.total_items > 0 {
|
||||
<span class="text-sm" style={
|
||||
if a.total_watched >= a.total_items { "color: var(--accent);" }
|
||||
else if a.total_watched > 0 { "color: var(--accent);" }
|
||||
if a.total_watched > 0 { "color: var(--accent);" }
|
||||
else { "color: var(--text-muted);" }
|
||||
}>
|
||||
{ format!("{}/{}", a.total_watched, a.total_items) }
|
||||
|
||||
Reference in New Issue
Block a user