Merge branch 'hotfix/linted' into feature/glitchtip

This commit is contained in:
Untone 2024-05-05 19:30:45 +03:00
commit eb17b5185f
4 changed files with 10 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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