Merge branch 'hotfix/linted' into feature/rating

This commit is contained in:
Untone 2024-05-05 19:32:25 +03:00
commit 9a475b8d0c
4 changed files with 10 additions and 4 deletions

View File

@ -45,7 +45,6 @@ export const AuthorBadge = (props: Props) => {
setIsMobileView(!mediaMatches.sm)
})
// const { setFollowing } = useFollowing()
const { changeSearchParams } = useRouter()
const { t, formatDate, lang } = useLocalize()

View File

@ -28,6 +28,7 @@ const embedData = (data) => {
const result: { src: string; width?: string; height?: string } = { src: '' }
// biome-ignore lint/style/useForOf: <explanation>
for (let i = 0; i < attributes.length; i++) {
const attribute = attributes.item(i)
if (attribute) {

View File

@ -56,7 +56,7 @@ export const HeaderAuth = (props: Props) => {
const handleBurgerButtonClick = () => {
toggleEditorPanel()
}
// FIXME: use handler
const _handleSaveClick = () => {
const hasTopics = form.selectedTopics?.length > 0
if (hasTopics) {
@ -254,7 +254,12 @@ export const HeaderAuth = (props: Props) => {
}
>
<Show when={!isSaveButtonVisible()}>
<div class={clsx(styles.userControlItem, styles.userControlItemInbox)}>
<div
class={clsx(
styles.userControlItem,
// styles.userControlItemInbox
)}
>
<a href={getPagePath(router, 'inbox')}>
<div classList={{ entered: page().path === '/inbox' }}>
<Icon name="inbox-white" class={styles.icon} />

View File

@ -42,7 +42,8 @@ export const AllAuthors = (props: Props) => {
const filteredAuthors = createMemo(() => {
const query = searchQuery().toLowerCase()
return sortedAuthors().filter((author) => {
return author.name.toLowerCase().includes(query) // Предполагаем, что у автора есть свойство name
// Предполагаем, что у автора есть свойство name
return author.name.toLowerCase().includes(query)
})
})