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