Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
MidhunSureshR committed Nov 7, 2023
1 parent 0218b00 commit 4f89767
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/views/rooms/EntityTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ export default class EntityTile extends React.PureComponent<IProps, IState> {
};
}

/**
* Creates the PresenceLabel component if needed
* @returns The PresenceLabel component if we need to render it, undefined otherwise
*/
private getPresenceLabel(): JSX.Element | undefined {
if (!this.props.showPresence) return;
const activeAgo = this.props.presenceLastActiveAgo
Expand Down

0 comments on commit 4f89767

Please sign in to comment.