mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix type errors
This commit is contained in:
@@ -5,7 +5,7 @@ import { getFormattedTimeAgo } from '../lib/utils/time-utils';
|
|||||||
import useSubplebbitOfflineStore from '../stores/use-subplebbit-offline-store';
|
import useSubplebbitOfflineStore from '../stores/use-subplebbit-offline-store';
|
||||||
import useSubplebbitsLoadingStartTimestamps from '../stores/use-subplebbits-loading-start-timestamps-store';
|
import useSubplebbitsLoadingStartTimestamps from '../stores/use-subplebbits-loading-start-timestamps-store';
|
||||||
|
|
||||||
const useIsSubplebbitOffline = (subplebbit: Subplebbit) => {
|
const useIsSubplebbitOffline = (subplebbit: Subplebbit | undefined) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { address, state, updatedAt, updatingState } = subplebbit || {};
|
const { address, state, updatedAt, updatingState } = subplebbit || {};
|
||||||
const { subplebbitOfflineState, setSubplebbitOfflineState, initializesubplebbitOfflineState } = useSubplebbitOfflineStore();
|
const { subplebbitOfflineState, setSubplebbitOfflineState, initializesubplebbitOfflineState } = useSubplebbitOfflineStore();
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ const BoardRulesDisplay = ({ subplebbitAddress, defaultSubplebbits }: { subplebb
|
|||||||
</p>
|
</p>
|
||||||
) : rules && rules.length > 0 ? (
|
) : rules && rules.length > 0 ? (
|
||||||
<ol>
|
<ol>
|
||||||
{rules.map((rule, index) => (
|
{rules.map((rule: string, index: number) => (
|
||||||
<li key={index}>{rule}</li>
|
<li key={index}>{rule}</li>
|
||||||
))}
|
))}
|
||||||
</ol>
|
</ol>
|
||||||
|
|||||||
Reference in New Issue
Block a user