diff options
| author | Fuwn <[email protected]> | 2023-09-25 21:41:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-25 21:41:53 -0700 |
| commit | 1e2c754ea1813b87636c405eb10cf135a6517260 (patch) | |
| tree | 9016e6b81b89c7b23601c74dc4920f762c8cdf7e /src/lib/List/Due | |
| parent | refactor(anime): use title component (diff) | |
| download | due.moe-1e2c754ea1813b87636c405eb10cf135a6517260.tar.xz due.moe-1e2c754ea1813b87636c405eb10cf135a6517260.zip | |
refactor(completed): title component
Diffstat (limited to 'src/lib/List/Due')
| -rw-r--r-- | src/lib/List/Due/ListTitle.svelte | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/List/Due/ListTitle.svelte b/src/lib/List/Due/ListTitle.svelte index 5a37850c..2aa580d3 100644 --- a/src/lib/List/Due/ListTitle.svelte +++ b/src/lib/List/Due/ListTitle.svelte @@ -2,9 +2,11 @@ export let time: number | string = '...'; export let count: number | string = '...'; export let anime = false; + export let custom = ''; </script> <summary> - {anime ? 'Anime' : 'Manga & Light Novels'} [{count}] <small style="opacity: 50%">{time}s</small> + {custom.length !== 0 ? custom : anime ? 'Anime' : 'Manga & Light Novels'} [{count}] + <small style="opacity: 50%">{time}s</small> <slot /> </summary> |