lint-fix
This commit is contained in:
parent
7b3ab33481
commit
1c55c845b0
|
@ -511,9 +511,9 @@ export const FullArticle = (props: Props) => {
|
|||
<h4>{t('Authors')}</h4>
|
||||
</Show>
|
||||
<For each={props.article.authors}>
|
||||
{(author) => (
|
||||
{(a: Author) => (
|
||||
<div class="col-xl-12">
|
||||
<AuthorBadge iconButtons={true} showMessageButton={true} author={author} />
|
||||
<AuthorBadge iconButtons={true} showMessageButton={true} author={a} />
|
||||
</div>
|
||||
)}
|
||||
</For>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { Shout } from '../../../graphql/schema/core.gen'
|
||||
import type { Author, Shout } from '../../../graphql/schema/core.gen'
|
||||
|
||||
import { getPagePath, openPage } from '@nanostores/router'
|
||||
import { clsx } from 'clsx'
|
||||
|
@ -95,7 +95,8 @@ export const ArticleCard = (props: ArticleCardProps) => {
|
|||
const { title, subtitle } = getTitleAndSubtitle(props.article)
|
||||
|
||||
const canEdit = () =>
|
||||
props.article.authors?.some((a) => a.slug === author()?.slug) || props.article.created_by == author().id
|
||||
props.article.authors?.some((a) => a.slug === author()?.slug) ||
|
||||
props.article.created_by.id === author().id
|
||||
|
||||
const { changeSearchParam } = useRouter()
|
||||
const scrollToComments = (event) => {
|
||||
|
@ -208,11 +209,11 @@ export const ArticleCard = (props: ArticleCardProps) => {
|
|||
<Show when={!props.settings?.noauthor}>
|
||||
<div class={styles.shoutAuthor}>
|
||||
<For each={props.article.authors}>
|
||||
{(author) => {
|
||||
{(a: Author) => {
|
||||
return (
|
||||
<AuthorLink
|
||||
size={'XS'}
|
||||
author={author}
|
||||
author={a}
|
||||
isFloorImportant={props.settings.isFloorImportant || props.settings?.isWithCover}
|
||||
/>
|
||||
)
|
||||
|
|
|
@ -18,9 +18,11 @@ import { AuthModal } from '../AuthModal'
|
|||
import { ConfirmModal } from '../ConfirmModal'
|
||||
import { HeaderAuth } from '../HeaderAuth'
|
||||
import { Modal } from '../Modal'
|
||||
import { Snackbar } from '../Snackbar'
|
||||
import { Link } from './Link'
|
||||
import { SearchModal } from '../SearchModal/SearchModal'
|
||||
import { Snackbar } from '../Snackbar'
|
||||
|
||||
import { Link } from './Link'
|
||||
|
||||
import styles from './Header.module.scss'
|
||||
|
||||
type Props = {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { hideModal } from '../../../stores/ui'
|
||||
import { useLocalize } from '../../../context/localize'
|
||||
import { Button } from '../../_shared/Button'
|
||||
import styles from './SearchModal.module.scss'
|
||||
import { Icon } from '../../_shared/Icon'
|
||||
import clsx from 'clsx'
|
||||
|
||||
import { useLocalize } from '../../../context/localize'
|
||||
import { Icon } from '../../_shared/Icon'
|
||||
|
||||
import styles from './SearchModal.module.scss'
|
||||
|
||||
export const SearchModal = () => {
|
||||
const { t } = useLocalize()
|
||||
|
||||
|
@ -33,7 +33,7 @@ export const SearchModal = () => {
|
|||
ref={contactElement}
|
||||
class={styles.searchField}
|
||||
/>
|
||||
<button type={submit} class={styles.submitControl}>
|
||||
<button type="submit" class={styles.submitControl}>
|
||||
<Icon name="search" />
|
||||
</button>
|
||||
<p class={styles.searchDescription}>
|
||||
|
|
Loading…
Reference in New Issue
Block a user