1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #2444 from daiyam/snippet-list

fix graphical bugs in snippet list
This commit is contained in:
Junyoung Choi (Sai)
2018-10-11 17:02:46 +09:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -55,7 +55,11 @@ class SnippetList extends React.Component {
defineSnippetStyleName (snippet) {
const { currentSnippet } = this.props
if (currentSnippet == null) return
if (currentSnippet == null) {
return 'snippet-item'
}
if (currentSnippet.id === snippet.id) {
return 'snippet-item-selected'
} else {