Skip to content
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

Add Pin to NoteItemSimple #1275

Merged
merged 1 commit into from
Dec 15, 2017
Merged

Add Pin to NoteItemSimple #1275

merged 1 commit into from
Dec 15, 2017

Conversation

kazup01
Copy link
Member

@kazup01 kazup01 commented Dec 11, 2017

#1273

Before

screen shot 0029-12-12 at 2 28 06 am

After

screen shot 0029-12-12 at 2 26 45 am

@BoostIO BoostIO deleted a comment from BoostnoteBot Dec 11, 2017
@kazup01 kazup01 added the awaiting review ❇️ Pull request is awaiting a review. label Dec 11, 2017
@kazup01 kazup01 requested a review from sota1235 December 11, 2017 17:30
@@ -30,6 +30,10 @@ const NoteItemSimple = ({ isActive, note, handleNoteClick, handleNoteContextMenu
? <i styleName='item-simple-title-icon' className='fa fa-fw fa-code' />
: <i styleName='item-simple-title-icon' className='fa fa-fw fa-file-text-o' />
}
{note.isPinned && !pathname.match(/\/home|\/starred|\/trash/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

writing logic on stateless component does not make sense because testing component will be harder.
plz receive boolean of which means same as !pathname.match(/\/home|\/starred|\/trash/

Copy link
Contributor

@sota1235 sota1235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz confirm my comment

@sota1235 sota1235 assigned kazup01 and unassigned sota1235 Dec 13, 2017
@kazup01 kazup01 merged commit 820a2a0 into master Dec 15, 2017
@kazup01
Copy link
Member Author

kazup01 commented Dec 15, 2017

Merged

@kazup01 kazup01 deleted the add-pin-note-item-simple branch December 15, 2017 06:32
@kazup01 kazup01 added next release (v0.8.19) and removed awaiting review ❇️ Pull request is awaiting a review. Next Release labels Dec 15, 2017
@kohei-takata kohei-takata mentioned this pull request Dec 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants