chore: Replace arrow function with regular function

This commit is contained in:
SleeplessOne1917 2023-09-27 17:20:27 -04:00
parent c044f06447
commit 20bf90a439

View file

@ -155,12 +155,15 @@ const Moderates = ({ moderates }: { moderates?: CommunityModeratorView[] }) =>
const Follows = () => const Follows = () =>
getCommunitiesListing("subscribed", UserService.Instance.myUserInfo?.follows); getCommunitiesListing("subscribed", UserService.Instance.myUserInfo?.follows);
const isPersonBlocked = (personRes: RequestState<GetPersonDetailsResponse>) => function isPersonBlocked(personRes: RequestState<GetPersonDetailsResponse>) {
return (
(personRes.state === "success" && (personRes.state === "success" &&
UserService.Instance.myUserInfo?.person_blocks.some( UserService.Instance.myUserInfo?.person_blocks.some(
({ target: { id } }) => id === personRes.data.person_view.person.id, ({ target: { id } }) => id === personRes.data.person_view.person.id,
)) ?? )) ??
false; false
);
}
export class Profile extends Component< export class Profile extends Component<
RouteComponentProps<{ username: string }>, RouteComponentProps<{ username: string }>,