mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(subscriptions): show info if no subs found
This commit is contained in:
@@ -49,7 +49,17 @@ const Board = () => {
|
||||
const { activeCid, closeModal, openReplyModal, showReplyModal, scrollY } = useReplyModal();
|
||||
|
||||
const loadingStateString = useFeedStateString(subplebbitAddresses) || t('loading');
|
||||
const loadingString = <div className={styles.stateString}>{state === 'failed' ? state : <LoadingEllipsis string={loadingStateString} />}</div>;
|
||||
const loadingString = (
|
||||
<div className={styles.stateString}>
|
||||
{state === 'failed' ? (
|
||||
state
|
||||
) : isInSubscriptionsView && subscriptions?.length === 0 ? (
|
||||
`You haven't subscribed to any board yet.`
|
||||
) : (
|
||||
<LoadingEllipsis string={loadingStateString} />
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
||||
const Footer = () => {
|
||||
let footerContent;
|
||||
|
||||
Reference in New Issue
Block a user