From b1dd2776f39377b3da8b6d87dce9cb406c03bd11 Mon Sep 17 00:00:00 2001 From: Austin Slominski Date: Sun, 8 Nov 2020 12:37:22 -0700 Subject: [PATCH] added 'Report User' button to GamePlayActions, opens a new email window. --- src/css/_gamescreen.scss | 4 ++++ src/ui/game/GamePlayActions.js | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/src/css/_gamescreen.scss b/src/css/_gamescreen.scss index 13b073c..fa94f2a 100644 --- a/src/css/_gamescreen.scss +++ b/src/css/_gamescreen.scss @@ -246,6 +246,10 @@ a.BoardNav-next { color: darken($error-bg, 15%); } +.GamePlayActions-report { + color: darken($error-bg, 15%); +} + .GamePlayActions-more { background: #eee; color: $semi-muted; diff --git a/src/ui/game/GamePlayActions.js b/src/ui/game/GamePlayActions.js index 416bf52..8b7d56c 100644 --- a/src/ui/game/GamePlayActions.js +++ b/src/ui/game/GamePlayActions.js @@ -107,6 +107,10 @@ export default class GamePlayActions extends Component { onClick={this._onLeaveGame}> Leave Game + Report User ) : null} @@ -160,6 +164,10 @@ export default class GamePlayActions extends Component { this.props.onLeaveGame(); }; + _onReportUser = () => { + window.location.href = "mailto:admin@gokgs.com?subject=[Report%20User%20or%20Issue]"; + } + _onDone = () => { this.props.onDoneScoring(this.props.game); };