mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
chore: Replace arrow function with regular function
This commit is contained in:
parent
c044f06447
commit
20bf90a439
1 changed files with 9 additions and 6 deletions
|
@ -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>) {
|
||||||
(personRes.state === "success" &&
|
return (
|
||||||
UserService.Instance.myUserInfo?.person_blocks.some(
|
(personRes.state === "success" &&
|
||||||
({ target: { id } }) => id === personRes.data.person_view.person.id,
|
UserService.Instance.myUserInfo?.person_blocks.some(
|
||||||
)) ??
|
({ 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 }>,
|
||||||
|
|
Loading…
Reference in a new issue