From 82dfbad5cbbd6405c2e16132f5591c029be81878 Mon Sep 17 00:00:00 2001 From: Nicolas Cantu Date: Wed, 14 Jan 2026 01:32:48 +0100 Subject: [PATCH] create for series --- components/CacheUpdateManager.tsx | 6 +++--- components/SeriesSection.tsx | 16 ++++++++++------ components/nip95Config/Nip95ConfigContent.tsx | 10 +++++----- components/relayManager/RelayManagerContent.tsx | 10 +++++----- 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/components/CacheUpdateManager.tsx b/components/CacheUpdateManager.tsx index 9230b7b..9467517 100644 --- a/components/CacheUpdateManager.tsx +++ b/components/CacheUpdateManager.tsx @@ -2,7 +2,7 @@ import { useState } from 'react' import { useRouter } from 'next/router' import { nostrAuthService } from '@/lib/nostrAuth' import { objectCache } from '@/lib/objectCache' -import { Button, ErrorState } from './ui' +import { Button, Card, ErrorState } from './ui' async function updateCache(): Promise { const state = nostrAuthService.getState() @@ -81,7 +81,7 @@ export function CacheUpdateManager(): React.ReactElement { const isConnected = state.connected && state.pubkey return ( -
+

Mise à jour du cache

@@ -104,6 +104,6 @@ export function CacheUpdateManager(): React.ReactElement { > {updating ? 'Mise à jour en cours...' : 'Mettre à jour le cache'} -

+ ) } diff --git a/components/SeriesSection.tsx b/components/SeriesSection.tsx index b0f9249..f5e6227 100644 --- a/components/SeriesSection.tsx +++ b/components/SeriesSection.tsx @@ -1,4 +1,5 @@ import { useCallback, useEffect, useState } from 'react' +import { Button } from './ui' import type { Series } from '@/types/nostr' import { SeriesList } from './SeriesList' import { SeriesStats } from './SeriesStats' @@ -43,22 +44,25 @@ function SeriesControls({ }): React.ReactElement { return (
- - +
) } diff --git a/components/nip95Config/Nip95ConfigContent.tsx b/components/nip95Config/Nip95ConfigContent.tsx index 2450233..7e5f7c9 100644 --- a/components/nip95Config/Nip95ConfigContent.tsx +++ b/components/nip95Config/Nip95ConfigContent.tsx @@ -1,5 +1,5 @@ import type { Nip95Config } from '@/lib/configStorageTypes' -import { Button, Card, Input } from '../ui' +import { Button, Card, Input, ErrorState } from '../ui' import { t } from '@/lib/i18n' import { Nip95ApiList } from './Nip95ApiList' @@ -39,11 +39,11 @@ export function Nip95ConfigContent(params: { function ErrorBanner(params: { error: string; onClear: () => void }): React.ReactElement { return ( -
- {params.error} - +
) } diff --git a/components/relayManager/RelayManagerContent.tsx b/components/relayManager/RelayManagerContent.tsx index 26ef090..1ec3184 100644 --- a/components/relayManager/RelayManagerContent.tsx +++ b/components/relayManager/RelayManagerContent.tsx @@ -1,4 +1,4 @@ -import { Button, Card, Input } from '../ui' +import { Button, Card, Input, ErrorState } from '../ui' import { t } from '@/lib/i18n' import { RelayList } from './RelayList' import type { RelayManagerContentProps } from './types' @@ -32,11 +32,11 @@ export function RelayManagerContent(params: RelayManagerContentProps): React.Rea function ErrorBanner(params: { error: string; onClear: () => void }): React.ReactElement { return ( -
- {params.error} - +
) }