Refactor character counter to match upstream
This commit is contained in:
		@@ -9,6 +9,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
 | 
			
		||||
//  Components.
 | 
			
		||||
import Button from 'flavours/glitch/components/button';
 | 
			
		||||
import Icon from 'flavours/glitch/components/icon';
 | 
			
		||||
import CharacterCounter from './character_counter';
 | 
			
		||||
 | 
			
		||||
//  Utils.
 | 
			
		||||
import { maxChars } from 'flavours/glitch/util/initial_state';
 | 
			
		||||
@@ -49,7 +50,7 @@ class Publisher extends ImmutablePureComponent {
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
      <div className={computedClass}>
 | 
			
		||||
        <span className='count'>{diff}</span>
 | 
			
		||||
        <CharacterCounter text={countText} max={maxChars} />
 | 
			
		||||
        {sideArm && sideArm !== 'none' ? (
 | 
			
		||||
          <Button
 | 
			
		||||
            className='side_arm'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user