- {status === 'loading' &&
Loading…
}
- {status === 'empty' &&
{source.name} has no notes for this chapter.
}
- {status === 'ready' && !entry &&
No notes at or before this verse in {source.name}.
}
+ {status === 'loading' &&
Loading…
}
+ {status === 'empty' &&
{source.name} has no notes for this chapter.
}
+ {status === 'ready' && !entry &&
No notes at or before this verse in {source.name}.
}
{status === 'ready' && entry && (
<>
{entry.number !== verse && (
-
Notes on the passage starting at verse {entry.number}.
+
Notes on the passage starting at verse {entry.number}.
)}
-
-
{source.credit}
+
{source.credit}
);
}
function PersonDetails({ id }) {
const { status, data } = useAsync(() => loadPerson(id), [id]);
- if (status === 'loading') return No details available.
;
+ if (status === 'loading') return No details available.
;
const era = (y) => `${Math.abs(y)}${y < 0 ? ' BC' : ' AD'}`;
return (
-
+
{(data.description ?? []).map((d, i) =>
{d}
)}
{!data.description?.length &&
No description available.
}
{data.minYear != null && (
-
+
Lived approx. {era(data.minYear)}{data.maxYear != null && data.maxYear !== data.minYear ? ` – ${era(data.maxYear)}` : ''}
)}
@@ -68,9 +68,9 @@ function PersonDetails({ id }) {
function PersonCard({ person }) {
const [open, setOpen] = useState(false);
return (
-
-
{tab === 'commentary'
?