-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Word count split feature added to new view #676
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needs a merge (git pull origin staging) and then resolve the merge conflicts. I think there are actually no merge conflicts.- Also I had to remove some code from index.js that was not being used for any functionality. Be careful that when you copy-paste you understand the functionality you are copy-pasting over.
@@ -0,0 +1,104 @@ | |||
import React, {useState} from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this file into the EditINote folder
3b95ecb
to
99c222e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete the unused code from index.js please. Then I will tag Lawrence and get this merged.
import Instruction from '../EditEPubStructure/Instruction'; | ||
import EPubItemView from '../EditEPubStructure/EPubItemView'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused code. I thought i deleted this in my commit. Pleas delete
const [instExp, setInstExp] = useState(true); | ||
|
||
const toggleInstExp = (e, newExpanded) => setInstExp(newExpanded); | ||
|
||
useEffect(() => { | ||
// show the user onboard guide if possible | ||
setTimeout(() => { | ||
const guide = generateEPubGuide(); | ||
guide.start(); | ||
}, 1000); | ||
}, []); | ||
|
||
useEffect(() => { | ||
if (Boolean(ePubItem) && instExp) { | ||
setInstExp(false); | ||
} | ||
}, [ePubItem]); | ||
const itemViewElem = altEl(EPubItemView, Boolean(ePubItem), { | ||
item: ePubItem, setEPubItem | ||
}); | ||
const btnStyles = useButtonStyles(); | ||
const btnClasses = cx(btnStyles.tealLink, 'justify-content-start'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think most of this is unused functionality. We are no longer displaying the instruction and guide to the user. Delete all that does not pertain to the split menu.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.