format notes

This commit is contained in:
ntr committed 2022-12-26 19:34:04 +11:00
1 parent 0cec6414ae
commit c205ae81e2
2 files changed
+12 -6

No files matched your search

+7 -5
View File
@@ -1,4 +1,11 @@
# TODO
push offers
listen / notify
on offers
notify admins
contact options on landing page
move want add to rpc
@@ -9,10 +16,5 @@ status stepper
queue up wantlist adds to gracefully handle rate limiting
push offers
listen / notify
on offers
notify admins
+5 -1
View File
@@ -58,12 +58,16 @@ function OfferPriceBtn(offer) {
export default function OfferGroup(group, i) {
const ws = useSelector((state: State) => state.ws);
const format = group.details.formats[0].text ? `${group.details.formats[0].text} - ` : '';
const descriptions = group.details.formats.map(f => f.descriptions.join(' ')).join(' ')
const detailText = `${format} ${descriptions}`;
return (
<div class="offer" key={i}>
<section>
<h3>{group.details.artists_sort} - {group.details.title} <a href={group.details.uri} target="_blank"><ExternalLink /></a></h3>
<div class='alt-text details'>
{group.details.year} - {group.details.formats.map(f => f.descriptions.join(' ')).join(' ')}
{group.details.year} - {detailText}
</div>
<div class='alt-text details'>Status: {group.status}</div>
</section>