mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-25 11:13:30 +02:00
format
This commit is contained in:
@@ -36,7 +36,9 @@ function RelayReviewsPage() {
|
||||
<IntersectionObserverProvider<string> callback={callback}>
|
||||
<VerticalPageLayout>
|
||||
<Flex gap="2">
|
||||
<Button onClick={() => navigate(-1)} leftIcon={<ArrowLeftSIcon/>}>Back</Button>
|
||||
<Button onClick={() => navigate(-1)} leftIcon={<ArrowLeftSIcon />}>
|
||||
Back
|
||||
</Button>
|
||||
<PeopleListSelection />
|
||||
</Flex>
|
||||
{reviews.map((event) => (
|
||||
|
@@ -33,29 +33,29 @@ export default function SettingsView() {
|
||||
|
||||
return (
|
||||
<VerticalPageLayout as="form" onSubmit={saveSettings}>
|
||||
<FormProvider {...form}>
|
||||
<Accordion defaultIndex={[0]} allowMultiple>
|
||||
<DisplaySettings />
|
||||
<PerformanceSettings />
|
||||
<PrivacySettings />
|
||||
<LightningSettings />
|
||||
<DatabaseSettings />
|
||||
</Accordion>
|
||||
</FormProvider>
|
||||
<Flex gap="4" padding="4" alignItems="center">
|
||||
<Link isExternal href="https://github.com/hzrd149/nostrudel">
|
||||
<GithubIcon /> Github
|
||||
</Link>
|
||||
<Button
|
||||
ml="auto"
|
||||
isLoading={form.formState.isLoading || form.formState.isValidating || form.formState.isSubmitting}
|
||||
isDisabled={!form.formState.isDirty}
|
||||
colorScheme="brand"
|
||||
type="submit"
|
||||
>
|
||||
Save Settings
|
||||
</Button>
|
||||
</Flex>
|
||||
<FormProvider {...form}>
|
||||
<Accordion defaultIndex={[0]} allowMultiple>
|
||||
<DisplaySettings />
|
||||
<PerformanceSettings />
|
||||
<PrivacySettings />
|
||||
<LightningSettings />
|
||||
<DatabaseSettings />
|
||||
</Accordion>
|
||||
</FormProvider>
|
||||
<Flex gap="4" padding="4" alignItems="center">
|
||||
<Link isExternal href="https://github.com/hzrd149/nostrudel">
|
||||
<GithubIcon /> Github
|
||||
</Link>
|
||||
<Button
|
||||
ml="auto"
|
||||
isLoading={form.formState.isLoading || form.formState.isValidating || form.formState.isSubmitting}
|
||||
isDisabled={!form.formState.isDirty}
|
||||
colorScheme="brand"
|
||||
type="submit"
|
||||
>
|
||||
Save Settings
|
||||
</Button>
|
||||
</Flex>
|
||||
</VerticalPageLayout>
|
||||
);
|
||||
}
|
||||
|
@@ -40,14 +40,13 @@ function Relay({ url, reviews }: { url: string; reviews: NostrEvent[] }) {
|
||||
<RelayJoinAction url={url} size="sm" />
|
||||
</Flex>
|
||||
<RelayMetadata url={url} />
|
||||
{reviews.length>0&&(
|
||||
|
||||
{reviews.length > 0 && (
|
||||
<Flex py="0" direction="column" gap="2">
|
||||
{reviews.map((event) => (
|
||||
<RelayReviewNote key={event.id} event={event} />
|
||||
{reviews.map((event) => (
|
||||
<RelayReviewNote key={event.id} event={event} />
|
||||
))}
|
||||
</Flex>
|
||||
)}
|
||||
</Flex>
|
||||
)}
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
|
@@ -30,15 +30,15 @@ export default function UserStreamsTab() {
|
||||
const streams = useParsedStreams(events);
|
||||
|
||||
return (
|
||||
<IntersectionObserverProvider<string> callback={callback}>
|
||||
<VerticalPageLayout>
|
||||
<IntersectionObserverProvider<string> callback={callback}>
|
||||
<VerticalPageLayout>
|
||||
<SimpleGrid columns={{ base: 1, md: 2, lg: 3, xl: 4 }} spacing="2">
|
||||
{streams.map((stream) => (
|
||||
<StreamCard key={stream.event.id} stream={stream} />
|
||||
))}
|
||||
</SimpleGrid>
|
||||
<TimelineActionAndStatus timeline={timeline} />
|
||||
</VerticalPageLayout>
|
||||
</IntersectionObserverProvider>
|
||||
</VerticalPageLayout>
|
||||
</IntersectionObserverProvider>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user