eslint: sort imports & exports
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import { NostrLink, TaggedNostrEvent } from "@snort/system";
|
||||
import ProfileImage from "@/Components/User/ProfileImage";
|
||||
import Text from "@/Components/Text/Text";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
import NoteTime from "@/Components/Event/NoteTime";
|
||||
import Text from "@/Components/Text/Text";
|
||||
import ProfileImage from "@/Components/User/ProfileImage";
|
||||
|
||||
export default function ShortNote({ event }: { event: TaggedNostrEvent }) {
|
||||
// replace newlines with spaces, replace double spaces with single spaces
|
||||
|
@ -1,12 +1,14 @@
|
||||
import { ReactNode } from "react";
|
||||
import NostrBandApi from "@/External/NostrBand";
|
||||
import { ErrorOrOffline } from "../ErrorOrOffline";
|
||||
import { HashTagHeader } from "@/Pages/HashTagsPage";
|
||||
import { useLocale } from "@/IntlProvider";
|
||||
import classNames from "classnames";
|
||||
import { ReactNode } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import useCachedFetch from "@/Hooks/useCachedFetch";
|
||||
|
||||
import PageSpinner from "@/Components/PageSpinner";
|
||||
import NostrBandApi from "@/External/NostrBand";
|
||||
import useCachedFetch from "@/Hooks/useCachedFetch";
|
||||
import { useLocale } from "@/IntlProvider";
|
||||
import { HashTagHeader } from "@/Pages/HashTagsPage";
|
||||
|
||||
import { ErrorOrOffline } from "../ErrorOrOffline";
|
||||
|
||||
export default function TrendingHashtags({
|
||||
title,
|
||||
|
@ -1,21 +1,21 @@
|
||||
import { useState } from "react";
|
||||
import { removeUndefined } from "@snort/shared";
|
||||
import { NostrEvent, NostrLink, TaggedNostrEvent } from "@snort/system";
|
||||
import { useReactions } from "@snort/system-react";
|
||||
|
||||
import PageSpinner from "@/Components/PageSpinner";
|
||||
import Note from "@/Components/Event/Note";
|
||||
import NostrBandApi from "@/External/NostrBand";
|
||||
import { ErrorOrOffline } from "@/Components/ErrorOrOffline";
|
||||
import { useLocale } from "@/IntlProvider";
|
||||
import useModeration from "@/Hooks/useModeration";
|
||||
import ShortNote from "@/Components/Trending/ShortNote";
|
||||
import classNames from "classnames";
|
||||
import { useState } from "react";
|
||||
|
||||
import { ErrorOrOffline } from "@/Components/ErrorOrOffline";
|
||||
import Note from "@/Components/Event/Note";
|
||||
import { DisplayAs, DisplayAsSelector } from "@/Components/Feed/DisplayAsSelector";
|
||||
import ImageGridItem from "@/Components/Feed/ImageGridItem";
|
||||
import PageSpinner from "@/Components/PageSpinner";
|
||||
import { SpotlightThreadModal } from "@/Components/Spotlight/SpotlightThreadModal";
|
||||
import useLogin from "@/Hooks/useLogin";
|
||||
import ShortNote from "@/Components/Trending/ShortNote";
|
||||
import NostrBandApi from "@/External/NostrBand";
|
||||
import useCachedFetch from "@/Hooks/useCachedFetch";
|
||||
import { removeUndefined } from "@snort/shared";
|
||||
import useLogin from "@/Hooks/useLogin";
|
||||
import useModeration from "@/Hooks/useModeration";
|
||||
import { useLocale } from "@/IntlProvider";
|
||||
import { System } from "@/system";
|
||||
|
||||
export default function TrendingNotes({ count = Infinity, small = false }: { count: number; small: boolean }) {
|
||||
|
@ -1,11 +1,13 @@
|
||||
import { ReactNode } from "react";
|
||||
import { HexKey } from "@snort/system";
|
||||
import FollowListBase from "@/Components/User/FollowListBase";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
import PageSpinner from "@/Components/PageSpinner";
|
||||
import FollowListBase from "@/Components/User/FollowListBase";
|
||||
import NostrBandApi from "@/External/NostrBand";
|
||||
import { ErrorOrOffline } from "../ErrorOrOffline";
|
||||
import useCachedFetch from "@/Hooks/useCachedFetch";
|
||||
|
||||
import { ErrorOrOffline } from "../ErrorOrOffline";
|
||||
|
||||
export default function TrendingUsers({ title, count = Infinity }: { title?: ReactNode; count?: number }) {
|
||||
const api = new NostrBandApi();
|
||||
const trendingProfilesUrl = api.trendingProfilesUrl();
|
||||
|
Reference in New Issue
Block a user