1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-17 19:51:42 +00:00

Change styleName in each styles

This commit is contained in:
asmsuechan
2017-05-06 18:32:31 -07:00
parent b479b21c37
commit 8b8cb3c9b4
2 changed files with 4 additions and 2 deletions

View File

@@ -305,6 +305,7 @@ class MarkdownNoteDetail extends React.Component {
<StatusBar <StatusBar
{..._.pick(this.props, ['config', 'location', 'dispatch'])} {..._.pick(this.props, ['config', 'location', 'dispatch'])}
date={note.updatedAt} date={note.updatedAt}
type={note.type}
/> />
</div> </div>
) )

View File

@@ -48,7 +48,8 @@ class StatusBar extends React.Component {
render () { render () {
let { config, status } = this.context let { config, status } = this.context
const { location } = this.props const { location, type } = this.props
const styleName = type === 'MARKDOWN_NOTE' ? 'note-hash-md' : 'note-hash-snippet'
return ( return (
<div className='StatusBar' <div className='StatusBar'
@@ -61,7 +62,7 @@ class StatusBar extends React.Component {
{Math.floor(config.zoom * 100)}% {Math.floor(config.zoom * 100)}%
</button> </button>
<div styleName='note-hash'>#{location.query.key}</div> <div styleName={styleName}>#{location.query.key}</div>
<div styleName='blank' /> <div styleName='blank' />
{status.updateReady {status.updateReady