diff --git a/src/shared/components/common/auth-guard.tsx b/src/shared/components/common/auth-guard.tsx index b8a651f5..03352901 100644 --- a/src/shared/components/common/auth-guard.tsx +++ b/src/shared/components/common/auth-guard.tsx @@ -17,7 +17,7 @@ class AuthGuard extends Component< constructor( props: RouteComponentProps>, - context: any + context: any, ) { super(props, context); } @@ -26,7 +26,7 @@ class AuthGuard extends Component< if (!UserService.Instance.myUserInfo) { const { pathname, search } = this.props.location; this.context.router.history.replace( - `/login?prev=${encodeURIComponent(pathname + search)}` + `/login?prev=${encodeURIComponent(pathname + search)}`, ); } else { this.setState({ hasRedirected: true }); diff --git a/src/shared/components/common/subscribe-button.tsx b/src/shared/components/common/subscribe-button.tsx index 8778d723..ad189f6b 100644 --- a/src/shared/components/common/subscribe-button.tsx +++ b/src/shared/components/common/subscribe-button.tsx @@ -66,7 +66,7 @@ export function SubscribeButton({ type="button" className={classNames( buttonClass, - `btn-${subscribed === "Pending" ? "warning" : "secondary"}` + `btn-${subscribed === "Pending" ? "warning" : "secondary"}`, )} onClick={subscribed === "NotSubscribed" ? onFollow : onUnFollow} > @@ -102,7 +102,7 @@ function focusInput() { function submitRemoteFollow( { state: { instanceText }, props: { communityActorId } }: RemoteFetchModal, - event: Event + event: Event, ) { event.preventDefault(); @@ -116,7 +116,7 @@ function submitRemoteFollow( } window.location.href = `${instanceText}/activitypub/externalInteraction?uri=${encodeURIComponent( - communityActorId + communityActorId, )}`; } diff --git a/src/shared/components/home/login.tsx b/src/shared/components/home/login.tsx index ddd4e70b..9a21070f 100644 --- a/src/shared/components/home/login.tsx +++ b/src/shared/components/home/login.tsx @@ -84,7 +84,7 @@ async function handleLoginSubmit(i: Login, event: any) { function handleLoginUsernameChange(i: Login, event: any) { i.setState( - prevState => (prevState.form.username_or_email = event.target.value.trim()) + prevState => (prevState.form.username_or_email = event.target.value.trim()), ); } diff --git a/src/shared/utils/app/is-auth-path.ts b/src/shared/utils/app/is-auth-path.ts index adacff66..c4e9f59e 100644 --- a/src/shared/utils/app/is-auth-path.ts +++ b/src/shared/utils/app/is-auth-path.ts @@ -1,5 +1,5 @@ export default function isAuthPath(pathname: string) { return /^\/(create_.*?|inbox|settings|admin|reports|registration_applications|activitypub.*?)\b/g.test( - pathname + pathname, ); }