postrefactor-fixes

This commit is contained in:
tonyrewin 2022-11-13 09:47:17 +03:00
parent e9e141b36f
commit e6a14c6fa1
2 changed files with 3 additions and 3 deletions

View File

@ -6,14 +6,14 @@ import { t } from '../../utils/intl'
import { Icon } from '../Nav/Icon' import { Icon } from '../Nav/Icon'
import { useTopicsStore } from '../../stores/zine/topics' import { useTopicsStore } from '../../stores/zine/topics'
import { useArticlesStore } from '../../stores/zine/articles' import { useArticlesStore } from '../../stores/zine/articles'
import { useSeenStore } from '../../stores/zine/seen' import { seen } from '../../stores/zine/seen'
type FeedSidebarProps = { type FeedSidebarProps = {
authors: Author[] authors: Author[]
} }
export const FeedSidebar = (props: FeedSidebarProps) => { export const FeedSidebar = (props: FeedSidebarProps) => {
const { getSeen: seen } = useSeenStore() const getSeen = seen
const { session } = useAuthStore() const { session } = useAuthStore()
const { authorEntities } = useAuthorsStore({ authors: props.authors }) const { authorEntities } = useAuthorsStore({ authors: props.authors })
const { articlesByTopic } = useArticlesStore() const { articlesByTopic } = useArticlesStore()

View File

@ -17,7 +17,7 @@ export const LayoutShoutsPage = (props: PageProps) => {
const page = getPage() const page = getPage()
if (page.route !== 'layout') { if (page.route !== 'expo') {
throw new Error('ts guard') throw new Error('ts guard')
} }