From f733184694e1ed4c9179960bbed6cd4d857b914a Mon Sep 17 00:00:00 2001 From: Sebastian-Webster <84299475+Sebastian-Webster@users.noreply.github.com> Date: Tue, 2 Jul 2024 23:50:44 +1200 Subject: [PATCH] added navigate to profile screen --- components/Comments/CommentItem.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/Comments/CommentItem.js b/components/Comments/CommentItem.js index 0f216e0..e2374b5 100644 --- a/components/Comments/CommentItem.js +++ b/components/Comments/CommentItem.js @@ -123,6 +123,10 @@ class CommentClass extends Component { } }) + navigateToProfileScreen = () => { + this.props.navigation.push('ProfilePages', {pubId: this.props.comment.commenterPubId}) + } + render() { return ( <> @@ -136,10 +140,10 @@ class CommentClass extends Component { - + - + {this.props.comment.commenterDisplayName} @{this.props.comment.commenterName}