@ -9,7 +9,8 @@ import spring from 'react-motion/lib/spring';
import { injectIntl , defineMessages } from 'react-intl' ;
import { injectIntl , defineMessages } from 'react-intl' ;
const messages = defineMessages ( {
const messages = defineMessages ( {
title : { id : 'compose_form.sensitive' , defaultMessage : 'Mark media as sensitive' } ,
marked : { id : 'compose_form.sensitive.marked' , defaultMessage : 'Media is marked as sensitive' } ,
unmarked : { id : 'compose_form.sensitive.unmarked' , defaultMessage : 'Media is not marked as sensitive' } ,
} ) ;
} ) ;
const mapStateToProps = state => ( {
const mapStateToProps = state => ( {
@ -50,7 +51,7 @@ class SensitiveButton extends React.PureComponent {
< div className = { className } style = { { transform : ` scale( ${ scale } ) ` } } >
< div className = { className } style = { { transform : ` scale( ${ scale } ) ` } } >
< IconButton
< IconButton
className = 'compose-form__sensitive-button__icon'
className = 'compose-form__sensitive-button__icon'
title = { intl . formatMessage ( messages. title ) }
title = { intl . formatMessage ( active ? messages . marked : messages . unmarked ) }
icon = { icon }
icon = { icon }
onClick = { onClick }
onClick = { onClick }
size = { 18 }
size = { 18 }