minor-fixes
This commit is contained in:
parent
1642109433
commit
a79bb2d099
|
@ -12,9 +12,9 @@ import { useReactions } from '../../context/reactions'
|
||||||
import { useSession } from '../../context/session'
|
import { useSession } from '../../context/session'
|
||||||
import { MediaItem } from '../../pages/types'
|
import { MediaItem } from '../../pages/types'
|
||||||
import { DEFAULT_HEADER_OFFSET, router, useRouter } from '../../stores/router'
|
import { DEFAULT_HEADER_OFFSET, router, useRouter } from '../../stores/router'
|
||||||
|
import { showModal } from '../../stores/ui'
|
||||||
import { capitalize } from '../../utils/capitalize'
|
import { capitalize } from '../../utils/capitalize'
|
||||||
import { isCyrillic } from '../../utils/cyrillic'
|
import { isCyrillic } from '../../utils/cyrillic'
|
||||||
import { showModal } from '../../stores/ui'
|
|
||||||
import { getImageUrl, getOpenGraphImageUrl } from '../../utils/getImageUrl'
|
import { getImageUrl, getOpenGraphImageUrl } from '../../utils/getImageUrl'
|
||||||
import { getDescription, getKeywords } from '../../utils/meta'
|
import { getDescription, getKeywords } from '../../utils/meta'
|
||||||
import { Icon } from '../_shared/Icon'
|
import { Icon } from '../_shared/Icon'
|
||||||
|
|
|
@ -42,9 +42,10 @@ export const AuthorBadge = (props: Props) => {
|
||||||
} = useSession()
|
} = useSession()
|
||||||
const { changeSearchParams } = useRouter()
|
const { changeSearchParams } = useRouter()
|
||||||
const { t, formatDate, lang } = useLocalize()
|
const { t, formatDate, lang } = useLocalize()
|
||||||
const subscribed = createMemo(
|
const subscribed = createMemo(() => {
|
||||||
() => subscriptions()?.authors.some((a: Author) => a?.slug === props.author.slug),
|
const sss = subscriptions()
|
||||||
)
|
return sss?.authors.some((a: Author) => a?.slug === props.author.slug)
|
||||||
|
})
|
||||||
|
|
||||||
const subscribe = async (really = true) => {
|
const subscribe = async (really = true) => {
|
||||||
setIsSubscribing(true)
|
setIsSubscribing(true)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user