|
@@ -4,17 +4,12 @@ import { translate } from 'react-i18next'
|
4
|
4
|
import PropTypes from 'prop-types'
|
5
|
5
|
import AnimateHeight from 'react-animate-height'
|
6
|
6
|
|
7
|
|
-const pad = number => {
|
8
|
|
- number = number.toString()
|
9
|
|
- return number.length < 2 ? pad('0' + number, 2) : number
|
10
|
|
-}
|
11
|
|
-
|
12
|
7
|
const WorkspaceListItem = props => {
|
13
|
8
|
return (
|
14
|
9
|
<li className='sidebar__navigation__workspace__item'>
|
15
|
10
|
<div className='sidebar__navigation__workspace__item__wrapper' onClick={props.onClickTitle}>
|
16
|
11
|
<div className='sidebar__navigation__workspace__item__number'>
|
17
|
|
- {pad(props.number)}
|
|
12
|
+ {props.name.substring(0, 2).toUpperCase()}
|
18
|
13
|
</div>
|
19
|
14
|
|
20
|
15
|
<div className='sidebar__navigation__workspace__item__name' title={props.name}>
|