From 0d99ae5daabf0ee1f29934886ddd1d6fa29bef1a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 1 Feb 2023 16:13:42 -0600 Subject: [PATCH] yarn lint:js --fix --- app/soapbox/components/account-search.tsx | 2 +- app/soapbox/components/account.tsx | 12 +++--- app/soapbox/components/animated-number.tsx | 2 +- .../components/announcements/emoji.tsx | 4 +- app/soapbox/components/birthday-input.tsx | 2 +- app/soapbox/components/dropdown-menu.tsx | 2 +- app/soapbox/components/error-boundary.tsx | 26 ++++++------ app/soapbox/components/event-preview.tsx | 4 +- app/soapbox/components/gdpr-banner.tsx | 2 +- app/soapbox/components/group-card.tsx | 6 +-- app/soapbox/components/landing-gradient.tsx | 2 +- app/soapbox/components/link.tsx | 2 +- app/soapbox/components/loading-screen.tsx | 2 +- app/soapbox/components/media-gallery.tsx | 2 +- app/soapbox/components/modal-root.tsx | 2 +- app/soapbox/components/polls/poll-option.tsx | 14 +++---- app/soapbox/components/profile-hover-card.tsx | 2 +- app/soapbox/components/scroll-top-button.tsx | 2 +- app/soapbox/components/sidebar-menu.tsx | 20 +++++----- .../components/status-action-button.tsx | 4 +- app/soapbox/components/status-content.tsx | 2 +- .../components/status-reply-mentions.tsx | 4 +- .../statuses/sensitive-content-overlay.tsx | 4 +- .../components/statuses/status-info.tsx | 2 +- app/soapbox/components/still-image.tsx | 4 +- app/soapbox/components/tombstone.tsx | 2 +- .../components/ui/accordion/accordion.tsx | 6 +-- app/soapbox/components/ui/banner/banner.tsx | 2 +- app/soapbox/components/ui/button/button.tsx | 2 +- app/soapbox/components/ui/card/card.tsx | 2 +- .../components/ui/checkbox/checkbox.tsx | 2 +- app/soapbox/components/ui/counter/counter.tsx | 2 +- .../components/ui/datepicker/datepicker.tsx | 2 +- app/soapbox/components/ui/divider/divider.tsx | 4 +- .../ui/emoji-selector/emoji-selector.tsx | 2 +- .../components/ui/file-input/file-input.tsx | 2 +- .../components/ui/form-group/form-group.tsx | 4 +- app/soapbox/components/ui/icon/icon.tsx | 4 +- app/soapbox/components/ui/input/input.tsx | 8 ++-- app/soapbox/components/ui/layout/layout.tsx | 8 ++-- app/soapbox/components/ui/modal/modal.tsx | 8 ++-- .../ui/phone-input/country-code-dropdown.tsx | 2 +- .../ui/progress-bar/progress-bar.tsx | 2 +- app/soapbox/components/ui/select/select.tsx | 2 +- app/soapbox/components/ui/slider/slider.tsx | 8 ++-- app/soapbox/components/ui/tabs/tabs.tsx | 2 +- .../components/ui/tag-input/tag-input.tsx | 6 +-- app/soapbox/components/ui/tag-input/tag.tsx | 2 +- app/soapbox/components/ui/toast/toast.tsx | 14 +++---- app/soapbox/components/ui/widget/widget.tsx | 2 +- app/soapbox/components/upload-progress.tsx | 6 +-- app/soapbox/components/upload.tsx | 2 +- app/soapbox/features/about/index.tsx | 4 +- .../account-gallery/components/media-item.tsx | 2 +- .../components/moved-note.tsx | 2 +- .../features/account/components/header.tsx | 18 ++++----- .../features/admin/components/dashcounter.tsx | 4 +- .../features/admin/components/report.tsx | 2 +- app/soapbox/features/admin/tabs/dashboard.tsx | 4 +- app/soapbox/features/ads/components/ad.tsx | 2 +- .../features/aliases/components/search.tsx | 4 +- app/soapbox/features/auth-layout/index.tsx | 10 ++--- .../auth-login/components/captcha.tsx | 2 +- .../auth-login/components/consumers-list.tsx | 2 +- .../auth-login/components/login-form.tsx | 6 +-- .../auth-login/components/otp-auth-form.tsx | 6 +-- .../components/password-reset-confirm.tsx | 6 +-- .../auth-login/components/password-reset.tsx | 6 +-- .../features/auth-token-list/index.tsx | 4 +- .../chats/components/chat-composer.tsx | 4 +- .../chats/components/chat-list-item.tsx | 14 +++---- .../components/chat-message-list-intro.tsx | 4 +- .../chats/components/chat-message-list.tsx | 20 +++++----- .../chats/components/chat-page/chat-page.tsx | 4 +- .../chat-page/components/blankslate-empty.tsx | 2 +- .../components/blankslate-with-chats.tsx | 2 +- .../chat-page/components/chat-page-main.tsx | 16 ++++---- .../chat-page/components/chat-page-new.tsx | 4 +- .../components/chat-page-settings.tsx | 4 +- .../components/chat-page-sidebar.tsx | 2 +- .../chat-page/components/welcome.tsx | 8 ++-- .../chats/components/chat-pane/blankslate.tsx | 4 +- .../chats/components/chat-pane/chat-pane.tsx | 2 +- .../components/chat-search/blankslate.tsx | 2 +- .../components/chat-search/chat-search.tsx | 4 +- .../chat-search/empty-results-blankslate.tsx | 2 +- .../chats/components/chat-search/results.tsx | 6 +-- .../chat-widget/chat-pane-header.tsx | 6 +-- .../components/chat-widget/chat-settings.tsx | 10 ++--- .../components/chat-widget/chat-window.tsx | 4 +- .../features/chats/components/chat.tsx | 2 +- .../components/polls/duration-selector.tsx | 2 +- .../compose/components/polls/poll-form.tsx | 2 +- .../compose/components/reply-indicator.tsx | 4 +- .../compose/components/search-results.tsx | 2 +- .../features/compose/components/search.tsx | 2 +- .../compose/components/spoiler-input.tsx | 2 +- .../components/crypto-address.tsx | 6 +-- .../features/developers/developers-menu.tsx | 2 +- .../developers/service-worker-info.tsx | 4 +- .../directory/components/account-card.tsx | 4 +- .../components/profile-preview.tsx | 4 +- app/soapbox/features/edit-profile/index.tsx | 2 +- .../features/embedded-status/index.tsx | 4 +- .../event/components/event-header.tsx | 16 ++++---- .../features/event/event-discussion.tsx | 4 +- .../features/event/event-information.tsx | 4 +- .../events/components/event-carousel.tsx | 12 +++--- .../components/instance-restrictions.tsx | 2 +- .../features/feed-filtering/feed-carousel.tsx | 40 +++++++++---------- .../feed-suggestions/feed-suggestions.tsx | 10 ++--- .../group/components/group-header.tsx | 12 +++--- app/soapbox/features/group/group-members.tsx | 2 +- app/soapbox/features/group/group-timeline.tsx | 2 +- app/soapbox/features/groups/index.tsx | 2 +- app/soapbox/features/home-timeline/index.tsx | 2 +- app/soapbox/features/landing-page/index.tsx | 12 +++--- .../features/list-adder/components/list.tsx | 2 +- .../list-editor/components/search.tsx | 2 +- .../lists/components/new-list-form.tsx | 2 +- app/soapbox/features/lists/index.tsx | 4 +- app/soapbox/features/migration/index.tsx | 2 +- .../notifications/components/notification.tsx | 8 ++-- .../features/onboarding/onboarding-wizard.tsx | 6 +-- .../steps/avatar-selection-step.tsx | 10 ++--- .../features/onboarding/steps/bio-step.tsx | 6 +-- .../onboarding/steps/completed-step.tsx | 4 +- .../steps/cover-photo-selection-step.tsx | 16 ++++---- .../onboarding/steps/display-name-step.tsx | 4 +- .../onboarding/steps/fediverse-step.tsx | 8 ++-- .../steps/suggested-accounts-step.tsx | 8 ++-- .../components/placeholder-account.tsx | 2 +- .../components/placeholder-avatar.tsx | 4 +- .../components/placeholder-card.tsx | 4 +- .../components/placeholder-chat-message.tsx | 4 +- .../components/placeholder-chat.tsx | 2 +- .../components/placeholder-event-preview.tsx | 6 +-- .../components/placeholder-group-card.tsx | 6 +-- .../components/placeholder-notification.tsx | 4 +- .../placeholder-sidebar-suggestions.tsx | 2 +- .../components/placeholder-status.tsx | 4 +- .../public-layout/components/footer.tsx | 4 +- .../public-layout/components/header.tsx | 22 +++++----- .../public-layout/components/sonar.tsx | 12 +++--- app/soapbox/features/public-layout/index.tsx | 4 +- .../features/security/mfa/enable-otp-form.tsx | 4 +- .../features/settings/media-display.tsx | 2 +- .../components/color-with-picker.tsx | 2 +- .../components/icon-picker-dropdown.tsx | 2 +- .../soapbox-config/components/icon-picker.tsx | 2 +- .../components/site-preview.tsx | 4 +- .../features/status/components/card.tsx | 14 +++---- .../components/status-interaction-bar.tsx | 2 +- .../status/components/thread-login-cta.tsx | 4 +- .../theme-editor/components/color.tsx | 2 +- .../theme-editor/components/palette.tsx | 2 +- app/soapbox/features/theme-editor/index.tsx | 2 +- .../ui/components/background-shapes.tsx | 2 +- .../ui/components/bundle-column-error.tsx | 2 +- .../ui/components/floating-action-button.tsx | 6 +-- .../features/ui/components/link-footer.tsx | 2 +- .../account-moderation-modal.tsx | 2 +- .../ui/components/modals/actions-modal.tsx | 2 +- .../compose-event-modal.tsx | 4 +- .../compose-event-modal/upload-button.tsx | 2 +- .../ui/components/modals/embed-modal.tsx | 2 +- .../ui/components/modals/hotkeys-modal.tsx | 6 +-- .../components/modals/landing-page-modal.tsx | 6 +-- .../manage-group-modal/steps/details-step.tsx | 6 +-- .../manage-group-modal/steps/privacy-step.tsx | 2 +- .../ui/components/modals/policy-modal.tsx | 12 +++--- .../ui/components/modals/reactions-modal.tsx | 2 +- .../modals/report-modal/report-modal.tsx | 10 ++--- .../report-modal/steps/confirmation-step.tsx | 2 +- .../report-modal/steps/other-actions-step.tsx | 2 +- .../modals/report-modal/steps/reason-step.tsx | 4 +- .../ui/components/modals/video-modal.tsx | 2 +- app/soapbox/features/ui/components/navbar.tsx | 20 +++++----- .../components/profile-familiar-followers.tsx | 2 +- .../features/ui/components/profile-field.tsx | 2 +- .../ui/components/profile-info-panel.tsx | 14 +++---- .../features/ui/components/promo-panel.tsx | 2 +- .../features/ui/components/theme-selector.tsx | 4 +- .../features/ui/components/upload-area.tsx | 4 +- .../features/ui/components/user-panel.tsx | 4 +- app/soapbox/features/ui/index.tsx | 2 +- .../features/verification/email-passthru.tsx | 8 ++-- .../features/verification/registration.tsx | 12 +++--- .../verification/steps/age-verification.tsx | 6 +-- .../verification/steps/email-verification.tsx | 12 +++--- .../verification/steps/sms-verification.tsx | 12 +++--- .../features/verification/waitlist-page.tsx | 12 +++--- app/soapbox/pages/home-page.tsx | 4 +- app/soapbox/utils/media.ts | 8 ++-- 194 files changed, 509 insertions(+), 509 deletions(-) diff --git a/app/soapbox/components/account-search.tsx b/app/soapbox/components/account-search.tsx index c519b0243a..a3d7fd1a62 100644 --- a/app/soapbox/components/account-search.tsx +++ b/app/soapbox/components/account-search.tsx @@ -72,7 +72,7 @@ const AccountSearch: React.FC = ({ onSelected, ...rest }) => {
= ({ account, disabled }) => { return ( ); }; @@ -147,7 +147,7 @@ const Account = ({ src={actionIcon} title={actionTitle} onClick={handleAction} - className='bg-transparent text-gray-600 dark:text-gray-600 hover:text-gray-700 dark:hover:text-gray-500' + className='bg-transparent text-gray-600 hover:text-gray-700 dark:text-gray-600 dark:hover:text-gray-500' iconClassName='w-4 h-4' /> ); @@ -193,7 +193,7 @@ const Account = ({ const LinkEl: any = withLinkToProfile ? Link : 'div'; return ( -
+
{emoji && ( )} -
+
{children}} diff --git a/app/soapbox/components/animated-number.tsx b/app/soapbox/components/animated-number.tsx index 0f6908fdee..e7dd824624 100644 --- a/app/soapbox/components/animated-number.tsx +++ b/app/soapbox/components/animated-number.tsx @@ -50,7 +50,7 @@ const AnimatedNumber: React.FC = ({ value, obfuscate }) => { return ( {items => ( - + {items.map(({ key, data, style }) => ( 0 ? 'absolute' : 'static', transform: `translateY(${style.y * 100}%)` }}>{obfuscate ? obfuscatedCount(data) : } ))} diff --git a/app/soapbox/components/announcements/emoji.tsx b/app/soapbox/components/announcements/emoji.tsx index 64266639d5..3628227dfe 100644 --- a/app/soapbox/components/announcements/emoji.tsx +++ b/app/soapbox/components/announcements/emoji.tsx @@ -24,7 +24,7 @@ const Emoji: React.FC = ({ emoji, emojiMap, hovered }) => { return ( {emoji} = ({ emoji, emojiMap, hovered }) => { return ( {shortCode} = ({ value, onChange, required }) const handleChange = (date: Date) => onChange(date ? new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).toISOString().slice(0, 10) : ''); return ( -
+
{Component => ( - {icon && } + {icon && } {text} diff --git a/app/soapbox/components/error-boundary.tsx b/app/soapbox/components/error-boundary.tsx index 87f6d749dd..3a6b4ac0be 100644 --- a/app/soapbox/components/error-boundary.tsx +++ b/app/soapbox/components/error-boundary.tsx @@ -113,17 +113,17 @@ class ErrorBoundary extends React.PureComponent { const errorText = this.getErrorText(); return ( -
-
-
+
+
+
-
-

+
+

@@ -132,7 +132,7 @@ class ErrorBoundary extends React.PureComponent { defaultMessage="We're sorry for the interruption. If the problem persists, please reach out to our support team. You may also try to {clearCookies} (this will log you out)." values={{ clearCookies: ( - + {

- + @@ -158,11 +158,11 @@ class ErrorBoundary extends React.PureComponent {
{!isProduction && ( -
+
{errorText && (