diff --git a/src/components/Author/AuthorBadge/AuthorBadge.tsx b/src/components/Author/AuthorBadge/AuthorBadge.tsx index a8456166..24e885e7 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.tsx +++ b/src/components/Author/AuthorBadge/AuthorBadge.tsx @@ -8,7 +8,6 @@ import { useMediaQuery } from '../../../context/mediaQuery' import { useSession } from '../../../context/session' import { Author, FollowingEntity } from '../../../graphql/schema/core.gen' import { router, useRouter } from '../../../stores/router' -import { resetSortedArticles } from '../../../stores/zine/articles' import { isCyrillic } from '../../../utils/cyrillic' import { translit } from '../../../utils/ru2en' import { Button } from '../../_shared/Button' diff --git a/src/components/Nav/AuthModal/ForgotPasswordForm.tsx b/src/components/Nav/AuthModal/ForgotPasswordForm.tsx index 493bd64a..01cc6187 100644 --- a/src/components/Nav/AuthModal/ForgotPasswordForm.tsx +++ b/src/components/Nav/AuthModal/ForgotPasswordForm.tsx @@ -1,6 +1,5 @@ import type { AuthModalSearchParams } from './types' -import { ApiResponse, ForgotPasswordResponse } from '@authorizerdev/authorizer-js' import { clsx } from 'clsx' import { createSignal, JSX, Show } from 'solid-js' diff --git a/src/components/Nav/AuthModal/LoginForm.tsx b/src/components/Nav/AuthModal/LoginForm.tsx index b4b54cda..c8c7bd5f 100644 --- a/src/components/Nav/AuthModal/LoginForm.tsx +++ b/src/components/Nav/AuthModal/LoginForm.tsx @@ -1,12 +1,11 @@ import type { AuthModalSearchParams } from './types' import { clsx } from 'clsx' -import { createEffect, createSignal, Show } from 'solid-js' +import { createSignal, Show } from 'solid-js' import { useLocalize } from '../../../context/localize' import { useSession } from '../../../context/session' import { useSnackbar } from '../../../context/snackbar' -import { ApiError } from '../../../graphql/error' import { useRouter } from '../../../stores/router' import { hideModal } from '../../../stores/ui' import { validateEmail } from '../../../utils/validateEmail' diff --git a/src/components/Views/Author/Author.tsx b/src/components/Views/Author/Author.tsx index 97b796f8..f299109a 100644 --- a/src/components/Views/Author/Author.tsx +++ b/src/components/Views/Author/Author.tsx @@ -3,7 +3,7 @@ import type { Author, Reaction, Shout, Topic } from '../../../graphql/schema/cor import { getPagePath } from '@nanostores/router' import { Meta } from '@solidjs/meta' import { clsx } from 'clsx' -import { Show, createMemo, createSignal, Switch, onMount, For, Match, createEffect, on } from 'solid-js' +import { Show, createMemo, createSignal, Switch, onMount, For, Match, createEffect } from 'solid-js' import { useFollowing } from '../../../context/following' import { useLocalize } from '../../../context/localize' diff --git a/src/components/Views/Edit.tsx b/src/components/Views/Edit.tsx index 9803ee78..f7ca7f4a 100644 --- a/src/components/Views/Edit.tsx +++ b/src/components/Views/Edit.tsx @@ -21,12 +21,12 @@ import { Editor, Panel } from '../Editor' import { AudioUploader } from '../Editor/AudioUploader' import { AutoSaveNotice } from '../Editor/AutoSaveNotice' import { VideoUploader } from '../Editor/VideoUploader' +import { Modal } from '../Nav/Modal' import { TableOfContents } from '../TableOfContents' import { PublishSettings } from './PublishSettings' import styles from './Edit.module.scss' -import { Modal } from '../Nav/Modal' const SimplifiedEditor = lazy(() => import('../Editor/SimplifiedEditor')) const GrowingTextarea = lazy(() => import('../_shared/GrowingTextarea/GrowingTextarea')) diff --git a/src/components/Views/Feed/Feed.tsx b/src/components/Views/Feed/Feed.tsx index 84646e85..bfd76067 100644 --- a/src/components/Views/Feed/Feed.tsx +++ b/src/components/Views/Feed/Feed.tsx @@ -30,11 +30,11 @@ import { AuthorBadge } from '../../Author/AuthorBadge' import { AuthorLink } from '../../Author/AuthorLink' import { ArticleCard } from '../../Feed/ArticleCard' import { Sidebar } from '../../Feed/Sidebar' +import { Modal } from '../../Nav/Modal' import styles from './Feed.module.scss' import stylesBeside from '../../Feed/Beside.module.scss' import stylesTopic from '../../Feed/CardTopic.module.scss' -import { Modal } from '../../Nav/Modal' export const FEED_PAGE_SIZE = 20 const UNRATED_ARTICLES_COUNT = 5 diff --git a/src/components/Views/Home.tsx b/src/components/Views/Home.tsx index 2f03cc0f..ac1d3b2b 100644 --- a/src/components/Views/Home.tsx +++ b/src/components/Views/Home.tsx @@ -1,7 +1,6 @@ import { getPagePath } from '@nanostores/router' -import { batch, createEffect, createMemo, createSignal, For, onMount, Show } from 'solid-js' +import { batch, createMemo, createSignal, For, onMount, Show } from 'solid-js' -import { useFollowing } from '../../context/following' import { useLocalize } from '../../context/localize' import { apiClient } from '../../graphql/client/core' import { Shout, Topic } from '../../graphql/schema/core.gen' diff --git a/src/components/Views/Inbox/Inbox.tsx b/src/components/Views/Inbox/Inbox.tsx index fd47e06d..4d8cd014 100644 --- a/src/components/Views/Inbox/Inbox.tsx +++ b/src/components/Views/Inbox/Inbox.tsx @@ -19,9 +19,9 @@ import DialogHeader from '../../Inbox/DialogHeader' import { Message } from '../../Inbox/Message' import MessagesFallback from '../../Inbox/MessagesFallback' import Search from '../../Inbox/Search' +import { Modal } from '../../Nav/Modal' import styles from './Inbox.module.scss' -import { Modal } from '../../Nav/Modal' type InboxSearchParams = { by?: string diff --git a/src/context/editor.tsx b/src/context/editor.tsx index 824d9d78..049a7e84 100644 --- a/src/context/editor.tsx +++ b/src/context/editor.tsx @@ -8,8 +8,9 @@ import { createStore, SetStoreFunction } from 'solid-js/store' import { apiClient } from '../graphql/client/core' import { Topic, TopicInput } from '../graphql/schema/core.gen' import { router, useRouter } from '../stores/router' -import { slugify } from '../utils/slugify' import { addArticles } from '../stores/zine/articles' +import { slugify } from '../utils/slugify' + import { useLocalize } from './localize' import { useSnackbar } from './snackbar'