From 0bdc1c480d5725cfe76c23007ec8c855cdf21aca Mon Sep 17 00:00:00 2001
From: mthomas41 <mthomas41@huskers.unl.edu>
Date: Mon, 13 Dec 2021 00:11:48 -0600
Subject: [PATCH] modal will now display the move selected on

---
 boost-app/src/features/play/gameTreesSlice.js | 5 +++--
 boost-app/src/features/play/scoreSheet.js     | 5 ++++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/boost-app/src/features/play/gameTreesSlice.js b/boost-app/src/features/play/gameTreesSlice.js
index 14f2d51..4b4efcd 100644
--- a/boost-app/src/features/play/gameTreesSlice.js
+++ b/boost-app/src/features/play/gameTreesSlice.js
@@ -171,6 +171,7 @@ function scanAndDelete(positionIdentity, tree) {
     delete tree.positions[positionIdentity];
   }
 }
+
 const gameTreesSlice = createSlice({
   name: 'gameTrees',
   initialState: {},
@@ -434,7 +435,7 @@ const gameTreesSlice = createSlice({
       if (tree === undefined) {
         return;
       }
-      tree.modificationTime = impure.createTimestamp(); // updating the modificationTime
+      tree.modificationTime = impure.createTimestamp();
       let positionEncoding = tree.positions[positionIdentity];
       let parent = tree.positions[positionEncoding.parentIdentity];
       while (parent !== undefined && positionEncoding !== undefined) {
@@ -457,7 +458,7 @@ const gameTreesSlice = createSlice({
       if (tree === undefined) {
         return;
       }
-      tree.modificationTime = impure.createTimestamp(); // updating the modificationTime
+      tree.modificationTime = impure.createTimestamp();
       const positionEncoding = tree.positions[positionIdentity];
       const parent = tree.positions[positionEncoding.parentIdentity];
       tree.currentPositionIdentity = parent.identity;
diff --git a/boost-app/src/features/play/scoreSheet.js b/boost-app/src/features/play/scoreSheet.js
index 97f594c..12de78e 100644
--- a/boost-app/src/features/play/scoreSheet.js
+++ b/boost-app/src/features/play/scoreSheet.js
@@ -2,7 +2,7 @@ import React, { useRef, useEffect } from 'react';
 import { useSelector, useDispatch } from 'react-redux';
 import { useHistory } from 'react-router-dom';
 import { Modal, createModalOpener } from '../../widgets/modal';
-import { Menu, MenuButton } from '../../widgets/menu.js';
+import { Menu, MenuButton, MenuText } from '../../widgets/menu.js';
 import PropTypes from 'prop-types';
 import classNames from 'classnames';
 import styles from './scoreSheet.module.css';
@@ -71,6 +71,9 @@ function Move(props) {
       </button>
       <Modal subpath={`scoresheetmove${props.move}`} altText={'move selector'}>
         <Menu>
+          <MenuText>
+            {props.move}
+          </MenuText>
           <MenuButton onClick={makingMainline}>
               MakeLine
           </MenuButton>
-- 
GitLab