From f7ccc8b1434d0223f69b7a44245da8c297f2fb9f Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 8 Feb 2024 05:30:34 +0300 Subject: [PATCH] untrail-the-comma --- biome.json | 2 +- src/components/App.tsx | 2 +- .../Article/AudioPlayer/AudioPlayer.tsx | 6 +- .../Article/AudioPlayer/PlayerHeader.tsx | 6 +- .../Article/AudioPlayer/PlayerPlaylist.tsx | 2 +- src/components/Article/Comment/Comment.tsx | 10 +-- .../Article/CommentDate/CommentDate.tsx | 2 +- .../Article/CommentRatingControl.tsx | 18 ++--- src/components/Article/CommentsTree.tsx | 6 +- .../Article/CoverImage/CoverImage.tsx | 2 +- src/components/Article/FullArticle.tsx | 26 +++---- src/components/Article/ShoutRatingControl.tsx | 6 +- src/components/AuthGuard/AuthGuard.tsx | 4 +- .../Author/AuthorBadge/AuthorBadge.tsx | 12 +-- .../Author/AuthorCard/AuthorCard.tsx | 8 +- .../Author/AuthorLink/AuthorLink.tsx | 2 +- src/components/Author/AuthorRatingControl.tsx | 2 +- src/components/Author/AuthorShoutsRating.tsx | 2 +- src/components/Author/Userpic/Userpic.tsx | 2 +- src/components/Discours/Donate.tsx | 22 +++--- src/components/Discours/Feedback.tsx | 4 +- src/components/Discours/Footer.tsx | 54 ++++++------- src/components/Discours/Hero.tsx | 4 +- src/components/Draft/Draft.tsx | 2 +- src/components/Editor/Editor.tsx | 76 +++++++++---------- .../EditorFloatingMenu/EditorFloatingMenu.tsx | 12 +-- .../Editor/InsertLinkForm/InsertLinkForm.tsx | 2 +- src/components/Editor/Panel/Panel.tsx | 2 +- src/components/Editor/SimplifiedEditor.tsx | 52 ++++++------- .../Editor/TextBubbleMenu/TextBubbleMenu.tsx | 34 ++++----- .../Editor/TopicSelect/TopicSelect.tsx | 4 +- .../UploadModalContent/UploadModalContent.tsx | 4 +- .../Editor/VideoUploader/VideoUploader.tsx | 12 +-- src/components/Editor/extensions/Article.ts | 18 ++--- .../Editor/extensions/CustomBlockquote.ts | 12 +-- .../Editor/extensions/CustomImage.ts | 18 ++--- .../Editor/extensions/Figcaption.ts | 10 +-- src/components/Editor/extensions/Figure.ts | 20 ++--- src/components/Editor/extensions/Footnote.ts | 16 ++-- src/components/Editor/extensions/Iframe.ts | 20 ++--- src/components/Editor/extensions/Span.ts | 10 +-- .../Editor/extensions/ToggleTextWrap.ts | 4 +- .../Editor/extensions/TrailingNode.ts | 10 +-- .../Feed/ArticleCard/ArticleCard.tsx | 16 ++-- src/components/Feed/Beside.tsx | 6 +- src/components/Feed/CardTopic.tsx | 2 +- src/components/Feed/Group.tsx | 6 +- src/components/Feed/Row1.tsx | 2 +- src/components/Feed/Row2.tsx | 2 +- src/components/Feed/Row3.tsx | 2 +- src/components/Feed/RowShort.tsx | 2 +- src/components/Feed/Sidebar/Sidebar.tsx | 12 +-- src/components/Inbox/CreateModalContent.tsx | 2 +- src/components/Inbox/DialogAvatar.tsx | 4 +- src/components/Inbox/DialogCard.tsx | 4 +- src/components/Inbox/MessageActionsPopup.tsx | 2 +- src/components/Inbox/QuotedMessage.tsx | 2 +- .../AuthModalHeader/AuthModalHeader.tsx | 26 +++---- .../Nav/AuthModal/ChangePasswordForm.tsx | 4 +- .../Nav/AuthModal/ForgotPasswordForm.tsx | 8 +- src/components/Nav/AuthModal/LoginForm.tsx | 8 +- .../AuthModal/PasswordField/PasswordField.tsx | 6 +- src/components/Nav/AuthModal/RegisterForm.tsx | 12 +-- src/components/Nav/AuthModal/index.tsx | 8 +- src/components/Nav/Header/Header.tsx | 4 +- src/components/Nav/HeaderAuth.tsx | 6 +- src/components/Nav/Modal/Modal.tsx | 4 +- .../Nav/SearchModal/SearchModal.tsx | 18 ++--- src/components/Nav/Snackbar.tsx | 2 +- .../NotificationsPanel/NotificationsPanel.tsx | 16 ++-- .../ProfileSettings/ProfileSettings.tsx | 10 +-- .../TableOfContents/TableOfContents.tsx | 22 +++--- src/components/Topic/Card.tsx | 10 +-- .../Topic/TopicBadge/TopicBadge.tsx | 4 +- src/components/Views/AllAuthors.tsx | 10 +-- src/components/Views/AllTopics.tsx | 8 +- src/components/Views/Author/Author.tsx | 12 +-- src/components/Views/Edit.tsx | 18 ++--- src/components/Views/Expo/Expo.tsx | 14 ++-- src/components/Views/Feed/Feed.tsx | 26 +++---- src/components/Views/Home.tsx | 12 +-- src/components/Views/Inbox/Inbox.tsx | 18 ++--- .../ProfileSubscriptions.tsx | 2 +- .../Views/PublishSettings/PublishSettings.tsx | 16 ++-- src/components/Views/Search.tsx | 6 +- src/components/Views/Topic.tsx | 12 +-- src/components/_shared/Button/Button.tsx | 4 +- src/components/_shared/DropArea/DropArea.tsx | 4 +- src/components/_shared/DropDown/DropDown.tsx | 2 +- .../_shared/DropdownSelect/DropdownSelect.tsx | 4 +- .../_shared/FloatingPanel/FloatingPanel.tsx | 2 +- .../_shared/GroupAvatar/GroupAvatar.tsx | 2 +- .../GrowingTextarea/GrowingTextarea.tsx | 4 +- src/components/_shared/Image/Image.tsx | 3 +- .../_shared/ImageCropper/ImageCropper.tsx | 8 +- .../_shared/InviteMembers/InviteMembers.tsx | 16 ++-- src/components/_shared/Lightbox/Lightbox.tsx | 8 +- src/components/_shared/Loading.tsx | 2 +- src/components/_shared/PageLayout.tsx | 2 +- src/components/_shared/Popover/Popover.tsx | 12 +-- src/components/_shared/Popup/Popup.tsx | 4 +- .../_shared/ShareLinks/ShareLinks.tsx | 2 +- .../_shared/SolidSwiper/ArticleCardSwiper.tsx | 6 +- .../_shared/SolidSwiper/EditorSwiper.tsx | 20 ++--- .../_shared/SolidSwiper/ImageSwiper.tsx | 14 ++-- .../_shared/Subscribe/Subscribe.tsx | 4 +- src/context/confirm.tsx | 6 +- src/context/connect.tsx | 4 +- src/context/editor.tsx | 16 ++-- src/context/following.tsx | 4 +- src/context/inbox.tsx | 4 +- src/context/localize.tsx | 8 +- src/context/mediaQuery.tsx | 2 +- src/context/notifications.tsx | 4 +- src/context/profile.tsx | 8 +- src/context/reactions.tsx | 16 ++-- src/context/session.tsx | 28 +++---- src/context/snackbar.tsx | 2 +- src/graphql/client/chat.ts | 4 +- src/graphql/client/core.ts | 6 +- src/graphql/client/notifier.ts | 4 +- src/graphql/createGraphQLClient.ts | 2 +- src/pages/about/discussionRules.page.tsx | 2 +- src/pages/about/help.page.tsx | 2 +- src/pages/about/manifest.page.tsx | 2 +- src/pages/about/thanks.page.tsx | 2 +- src/pages/allAuthors.page.server.ts | 4 +- src/pages/allTopics.page.server.ts | 4 +- src/pages/article.page.server.ts | 4 +- src/pages/article.page.tsx | 2 +- src/pages/author.page.server.ts | 6 +- src/pages/author.page.tsx | 10 +-- src/pages/connect.page.tsx | 8 +- src/pages/create.page.tsx | 2 +- src/pages/expo/expo.page.server.ts | 6 +- src/pages/expo/expo.page.tsx | 4 +- src/pages/feed.page.tsx | 8 +- src/pages/index.page.server.ts | 6 +- src/pages/index.page.tsx | 2 +- src/pages/profile/profileSecurity.page.tsx | 2 +- src/pages/search.page.server.ts | 4 +- src/pages/topic.page.server.ts | 6 +- src/pages/topic.page.tsx | 10 +-- src/renderer/_default.page.client.tsx | 2 +- src/renderer/_default.page.server.tsx | 4 +- src/stores/router.ts | 10 +-- src/stores/ui.ts | 8 +- src/stores/zine/articles.ts | 26 +++---- src/stores/zine/authors.ts | 10 +-- src/stores/zine/layouts.ts | 2 +- src/stores/zine/seen.ts | 2 +- src/stores/zine/topAuthors.ts | 4 +- src/stores/zine/topics.ts | 4 +- src/utils/composeMediaItems.ts | 2 +- src/utils/dummyFilter.ts | 2 +- src/utils/getImageUrl.ts | 6 +- src/utils/groupby.ts | 8 +- src/utils/handleFileUpload.ts | 2 +- src/utils/handleImageUpload.ts | 4 +- src/utils/profileSocialLinks.ts | 2 +- src/utils/renderUploadedImage.ts | 8 +- src/utils/ru2en.ts | 2 +- src/utils/scroll.ts | 6 +- src/utils/sortby.ts | 2 +- 164 files changed, 690 insertions(+), 691 deletions(-) diff --git a/biome.json b/biome.json index 6861f822..968ec8e4 100644 --- a/biome.json +++ b/biome.json @@ -22,7 +22,7 @@ "formatter": { "semicolons": "asNeeded", "quoteStyle": "single", - "trailingComma": "all", + "trailingComma": "none", "enabled": true, "jsxQuoteStyle": "double", "arrowParentheses": "always" diff --git a/src/components/App.tsx b/src/components/App.tsx index b024f194..26ec7975 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -84,7 +84,7 @@ const pagesMap: Record> = { profileSettings: ProfileSettingsPage, profileSecurity: ProfileSecurityPage, profileSubscriptions: ProfileSubscriptionsPage, - fourOuFour: FourOuFourPage, + fourOuFour: FourOuFourPage } type Props = PageProps & { is404: boolean } diff --git a/src/components/Article/AudioPlayer/AudioPlayer.tsx b/src/components/Article/AudioPlayer/AudioPlayer.tsx index 00bebe9d..6b4b6aff 100644 --- a/src/components/Article/AudioPlayer/AudioPlayer.tsx +++ b/src/components/Article/AudioPlayer/AudioPlayer.tsx @@ -38,8 +38,8 @@ export const AudioPlayer = (props: Props) => { () => { setCurrentTrackDuration(0) }, - { defer: true }, - ), + { defer: true } + ) ) const handlePlayMedia = async (trackIndex: number) => { @@ -134,7 +134,7 @@ export const AudioPlayer = (props: Props) => {
diff --git a/src/components/Article/AudioPlayer/PlayerHeader.tsx b/src/components/Article/AudioPlayer/PlayerHeader.tsx index 37d020cb..bc2654ee 100644 --- a/src/components/Article/AudioPlayer/PlayerHeader.tsx +++ b/src/components/Article/AudioPlayer/PlayerHeader.tsx @@ -18,7 +18,7 @@ type Props = { export const PlayerHeader = (props: Props) => { const volumeContainerRef: { current: HTMLDivElement } = { - current: null, + current: null } const [isVolumeBarOpened, setIsVolumeBarOpened] = createSignal(false) @@ -30,7 +30,7 @@ export const PlayerHeader = (props: Props) => { useOutsideClickHandler({ containerRef: volumeContainerRef, predicate: () => isVolumeBarOpened(), - handler: () => toggleVolumeBar(), + handler: () => toggleVolumeBar() }) return ( @@ -42,7 +42,7 @@ export const PlayerHeader = (props: Props) => { onClick={props.onPlayMedia} class={clsx( styles.playButton, - props.isPlaying ? styles.playButtonInvertPause : styles.playButtonInvertPlay, + props.isPlaying ? styles.playButtonInvertPause : styles.playButtonInvertPlay )} aria-label="Play" data-playing="false" diff --git a/src/components/Article/AudioPlayer/PlayerPlaylist.tsx b/src/components/Article/AudioPlayer/PlayerPlaylist.tsx index ff0661c9..cda903de 100644 --- a/src/components/Article/AudioPlayer/PlayerPlaylist.tsx +++ b/src/components/Article/AudioPlayer/PlayerPlaylist.tsx @@ -43,7 +43,7 @@ export const PlayerPlaylist = (props: Props) => { gtag('event', 'select_item', { item_list_id: props.articleSlug, item_list_name: getMediaTitle(mi, index), - items: props.media.map((it, ix) => getMediaTitle(it, ix)), + items: props.media.map((it, ix) => getMediaTitle(it, ix)) }) } return ( diff --git a/src/components/Article/Comment/Comment.tsx b/src/components/Article/Comment/Comment.tsx index d6af579f..3b9a8655 100644 --- a/src/components/Article/Comment/Comment.tsx +++ b/src/components/Article/Comment/Comment.tsx @@ -54,7 +54,7 @@ export const Comment = (props: Props) => { confirmBody: t('Are you sure you want to delete this comment?'), confirmButtonLabel: t('Delete'), confirmButtonVariant: 'danger', - declineButtonVariant: 'primary', + declineButtonVariant: 'primary' }) if (isConfirmed) { @@ -75,7 +75,7 @@ export const Comment = (props: Props) => { kind: ReactionKind.Comment, reply_to: props.comment.id, body: value, - shout: props.comment.shout.id, + shout: props.comment.shout.id }) setClearEditor(true) setIsReplyVisible(false) @@ -96,7 +96,7 @@ export const Comment = (props: Props) => { await updateReaction(props.comment.id, { kind: ReactionKind.Comment, body: value, - shout: props.comment.shout.id, + shout: props.comment.shout.id }) setEditMode(false) setLoading(false) @@ -109,7 +109,7 @@ export const Comment = (props: Props) => {
  • props.lastSeen, + [styles.isNew]: !isCommentAuthor() && comment()?.created_at > props.lastSeen })} > @@ -122,7 +122,7 @@ export const Comment = (props: Props) => { name={comment().created_by.name} userpic={comment().created_by.pic} class={clsx({ - [styles.compactUserpic]: props.compact, + [styles.compactUserpic]: props.compact })} /> diff --git a/src/components/Article/CommentDate/CommentDate.tsx b/src/components/Article/CommentDate/CommentDate.tsx index e3901399..388295a5 100644 --- a/src/components/Article/CommentDate/CommentDate.tsx +++ b/src/components/Article/CommentDate/CommentDate.tsx @@ -30,7 +30,7 @@ export const CommentDate = (props: Props) => {
    diff --git a/src/components/Article/CommentRatingControl.tsx b/src/components/Article/CommentRatingControl.tsx index 5ce60d08..eb471f51 100644 --- a/src/components/Article/CommentRatingControl.tsx +++ b/src/components/Article/CommentRatingControl.tsx @@ -28,7 +28,7 @@ export const CommentRatingControl = (props: Props) => { r.kind === reactionKind && r.created_by.slug === author()?.slug && r.shout.id === props.comment.shout.id && - r.reply_to === props.comment.id, + r.reply_to === props.comment.id ) const isUpvoted = createMemo(() => checkReaction(ReactionKind.Like)) const isDownvoted = createMemo(() => checkReaction(ReactionKind.Dislike)) @@ -39,8 +39,8 @@ export const CommentRatingControl = (props: Props) => { (r) => [ReactionKind.Like, ReactionKind.Dislike].includes(r.kind) && r.shout.id === props.comment.shout.id && - r.reply_to === props.comment.id, - ), + r.reply_to === props.comment.id + ) ) const deleteCommentReaction = async (reactionKind: ReactionKind) => { @@ -49,7 +49,7 @@ export const CommentRatingControl = (props: Props) => { r.kind === reactionKind && r.created_by.slug === author()?.slug && r.shout.id === props.comment.shout.id && - r.reply_to === props.comment.id, + r.reply_to === props.comment.id ) return deleteReaction(reactionToDelete.id) } @@ -64,7 +64,7 @@ export const CommentRatingControl = (props: Props) => { await createReaction({ kind: isUpvote ? ReactionKind.Like : ReactionKind.Dislike, shout: props.comment.shout.id, - reply_to: props.comment.id, + reply_to: props.comment.id }) } } catch { @@ -73,7 +73,7 @@ export const CommentRatingControl = (props: Props) => { await loadShout(props.comment.shout.slug) await loadReactionsBy({ - by: { shout: props.comment.shout.slug }, + by: { shout: props.comment.shout.slug } }) } @@ -84,7 +84,7 @@ export const CommentRatingControl = (props: Props) => { disabled={!(canVote() && author())} onClick={() => handleRatingChange(true)} class={clsx(styles.commentRatingControl, styles.commentRatingControlUp, { - [styles.voted]: isUpvoted(), + [styles.voted]: isUpvoted() })} /> {
    0, - [styles.commentRatingNegative]: props.comment.stat.rating < 0, + [styles.commentRatingNegative]: props.comment.stat.rating < 0 })} > {props.comment.stat.rating || 0} @@ -110,7 +110,7 @@ export const CommentRatingControl = (props: Props) => { disabled={!(canVote() && author())} onClick={() => handleRatingChange(false)} class={clsx(styles.commentRatingControl, styles.commentRatingControlDown, { - [styles.voted]: isDownvoted(), + [styles.voted]: isDownvoted() })} />
    diff --git a/src/components/Article/CommentsTree.tsx b/src/components/Article/CommentsTree.tsx index 3057ffb6..0226fe2a 100644 --- a/src/components/Article/CommentsTree.tsx +++ b/src/components/Article/CommentsTree.tsx @@ -52,7 +52,7 @@ export const CommentsTree = (props: Props) => { const { reactionEntities, createReaction } = useReactions() const comments = createMemo(() => - Object.values(reactionEntities).filter((reaction) => reaction.kind === 'COMMENT'), + Object.values(reactionEntities).filter((reaction) => reaction.kind === 'COMMENT') ) const sortedComments = createMemo(() => { @@ -96,7 +96,7 @@ export const CommentsTree = (props: Props) => { await createReaction({ kind: ReactionKind.Comment, body: value, - shout: props.shoutId, + shout: props.shoutId }) setClearEditor(true) } catch (error) { @@ -154,7 +154,7 @@ export const CommentsTree = (props: Props) => { a?.slug === reaction.created_by.slug), + props.articleAuthors.some((a) => a?.slug === reaction.created_by.slug) )} comment={reaction} clickedReply={(id) => setClickedReplyId(id)} diff --git a/src/components/Article/CoverImage/CoverImage.tsx b/src/components/Article/CoverImage/CoverImage.tsx index 970d2636..4815b20d 100644 --- a/src/components/Article/CoverImage/CoverImage.tsx +++ b/src/components/Article/CoverImage/CoverImage.tsx @@ -26,7 +26,7 @@ const coverImages = [ CoverImage9, CoverImage10, CoverImage11, - CoverImage12, + CoverImage12 ] let counter = 0 diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 9119274c..d2d3ac35 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -62,7 +62,7 @@ const scrollTo = (el: HTMLElement) => { window.scrollTo({ top: top + window.scrollY - DEFAULT_HEADER_OFFSET, left: 0, - behavior: 'smooth', + behavior: 'smooth' }) } @@ -159,7 +159,7 @@ export const FullArticle = (props: Props) => { if (searchParams()?.scrollTo === 'comments' && commentsRef.current) { scrollToComments() changeSearchParams({ - scrollTo: null, + scrollTo: null }) } }) @@ -167,7 +167,7 @@ export const FullArticle = (props: Props) => { createEffect(() => { if (searchParams().commentId && isReactionsLoaded()) { const commentElement = document.querySelector( - `[id='comment_${searchParams().commentId}']`, + `[id='comment_${searchParams().commentId}']` ) changeSearchParams({ commentId: null }) @@ -187,7 +187,7 @@ export const FullArticle = (props: Props) => { } const tooltipElements: NodeListOf = document.querySelectorAll( - '[data-toggle="tooltip"], footnote', + '[data-toggle="tooltip"], footnote' ) if (!tooltipElements) { return @@ -212,19 +212,19 @@ export const FullArticle = (props: Props) => { modifiers: [ { name: 'eventListeners', - options: { scroll: false }, + options: { scroll: false } }, { name: 'offset', options: { - offset: [0, 8], - }, + offset: [0, 8] + } }, { name: 'flip', - options: { fallbackPlacements: ['top'] }, - }, - ], + options: { fallbackPlacements: ['top'] } + } + ] }) tooltip.style.visibility = 'hidden' @@ -309,8 +309,8 @@ export const FullArticle = (props: Props) => { () => props.article, () => { updateIframeSizes() - }, - ), + } + ) ) const [ratings, setRatings] = createSignal([]) onMount(async () => { @@ -329,7 +329,7 @@ export const FullArticle = (props: Props) => { title: props.article.title, topic: mainTopic()?.title || '', author: props.article?.authors[0]?.name || '', - width: 1200, + width: 1200 }) const description = getDescription(props.article.description || body()) diff --git a/src/components/Article/ShoutRatingControl.tsx b/src/components/Article/ShoutRatingControl.tsx index 409c65d6..a6c42d09 100644 --- a/src/components/Article/ShoutRatingControl.tsx +++ b/src/components/Article/ShoutRatingControl.tsx @@ -43,8 +43,8 @@ export const ShoutRatingControl = (props: ShoutRatingControlProps) => { const total = likes - dislikes setTotal(total) }, - { defer: true }, - ), + { defer: true } + ) ) const handleRatingChange = (voteKind: ReactionKind) => { @@ -65,7 +65,7 @@ export const ShoutRatingControl = (props: ShoutRatingControlProps) => { if (myRate()?.kind === oppositeKind) { mergeProps( props.ratings, - props.ratings.filter((r) => r.id === myRate().id), + props.ratings.filter((r) => r.id === myRate().id) ) await deleteReaction(myRate().id) setMyRate(undefined) diff --git a/src/components/AuthGuard/AuthGuard.tsx b/src/components/AuthGuard/AuthGuard.tsx index 6ba70476..d1ae8a75 100644 --- a/src/components/AuthGuard/AuthGuard.tsx +++ b/src/components/AuthGuard/AuthGuard.tsx @@ -26,9 +26,9 @@ export const AuthGuard = (props: Props) => { changeSearchParams( { source: 'authguard', - m: 'auth', + m: 'auth' }, - true, + true ) } } else { diff --git a/src/components/Author/AuthorBadge/AuthorBadge.tsx b/src/components/Author/AuthorBadge/AuthorBadge.tsx index d81a26d0..11648495 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.tsx +++ b/src/components/Author/AuthorBadge/AuthorBadge.tsx @@ -53,7 +53,7 @@ export const AuthorBadge = (props: Props) => { requireAuthentication(() => { openPage(router, 'inbox') changeSearchParams({ - initChat: props.author.id.toString(), + initChat: props.author.id.toString() }) }, 'discussions') } @@ -74,8 +74,8 @@ export const AuthorBadge = (props: Props) => { on( () => props.isFollowed, (followed) => setIsFollowed(followed?.value), - { defer: true }, - ), + { defer: true } + ) ) const handleFollowClick = () => { @@ -112,7 +112,7 @@ export const AuthorBadge = (props: Props) => { fallback={
    {t('Registered since {date}', { - date: formatDate(new Date(props.author.created_at * 1000)), + date: formatDate(new Date(props.author.created_at * 1000)) })}
    } @@ -150,7 +150,7 @@ export const AuthorBadge = (props: Props) => { isSubscribeButton={true} class={clsx(styles.actionButton, { [styles.iconed]: props.iconButtons, - [stylesButton.subscribed]: isFollowed(), + [stylesButton.subscribed]: isFollowed() })} /> } @@ -175,7 +175,7 @@ export const AuthorBadge = (props: Props) => { isSubscribeButton={true} class={clsx(styles.actionButton, { [styles.iconed]: props.iconButtons, - [stylesButton.subscribed]: isFollowed(), + [stylesButton.subscribed]: isFollowed() })} /> diff --git a/src/components/Author/AuthorCard/AuthorCard.tsx b/src/components/Author/AuthorCard/AuthorCard.tsx index 9fa25a8e..e686cb42 100644 --- a/src/components/Author/AuthorCard/AuthorCard.tsx +++ b/src/components/Author/AuthorCard/AuthorCard.tsx @@ -63,7 +63,7 @@ export const AuthorCard = (props: Props) => { requireAuthentication(() => { openPage(router, 'inbox') changeSearchParams({ - initChat: props.author.id.toString(), + initChat: props.author.id.toString() }) }, 'discussions') } @@ -206,7 +206,7 @@ export const AuthorCard = (props: Props) => { value={followButtonText()} isSubscribeButton={true} class={clsx({ - [stylesButton.subscribed]: isFollowed(), + [stylesButton.subscribed]: isFollowed() })} /> @@ -254,7 +254,7 @@ export const AuthorCard = (props: Props) => { author={follower} isFollowed={{ loaded: Boolean(authorSubs()), - value: isOwnerSubscribed(follower.id), + value: isOwnerSubscribed(follower.id) }} /> )} @@ -303,7 +303,7 @@ export const AuthorCard = (props: Props) => { diff --git a/src/components/Author/AuthorLink/AuthorLink.tsx b/src/components/Author/AuthorLink/AuthorLink.tsx index 27ab93f8..4eb73443 100644 --- a/src/components/Author/AuthorLink/AuthorLink.tsx +++ b/src/components/Author/AuthorLink/AuthorLink.tsx @@ -27,7 +27,7 @@ export const AuthorLink = (props: Props) => { return (
    diff --git a/src/components/Author/AuthorRatingControl.tsx b/src/components/Author/AuthorRatingControl.tsx index 3175c30a..81c16515 100644 --- a/src/components/Author/AuthorRatingControl.tsx +++ b/src/components/Author/AuthorRatingControl.tsx @@ -30,7 +30,7 @@ export const AuthorRatingControl = (props: AuthorRatingControlProps) => {
    diff --git a/src/components/_shared/DropdownSelect/DropdownSelect.tsx b/src/components/_shared/DropdownSelect/DropdownSelect.tsx index f0cddc2c..5860466f 100644 --- a/src/components/_shared/DropdownSelect/DropdownSelect.tsx +++ b/src/components/_shared/DropdownSelect/DropdownSelect.tsx @@ -20,7 +20,7 @@ export const DropdownSelect = (props: Props) => { const [isDropDownVisible, setIsDropDownVisible] = createSignal(false) const containerRef: { current: HTMLElement } = { - current: null, + current: null } const handleShowDropdown = () => { @@ -30,7 +30,7 @@ export const DropdownSelect = (props: Props) => { useOutsideClickHandler({ containerRef, predicate: () => isDropDownVisible(), - handler: () => setIsDropDownVisible(false), + handler: () => setIsDropDownVisible(false) }) return ( diff --git a/src/components/_shared/FloatingPanel/FloatingPanel.tsx b/src/components/_shared/FloatingPanel/FloatingPanel.tsx index d629500e..3bc7de66 100644 --- a/src/components/_shared/FloatingPanel/FloatingPanel.tsx +++ b/src/components/_shared/FloatingPanel/FloatingPanel.tsx @@ -16,7 +16,7 @@ export default (props: Props) => { return (