Skip to content

Commit

Permalink
apply shortner to sidebar channel title
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhu2000 committed Apr 25, 2017
1 parent 226bf74 commit a0517f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion index.html
Expand Up @@ -5,7 +5,6 @@
<meta charset="utf-8">
<title>Youtube</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="app/stylesheets/main.css" rel="stylesheet">
</head>

Expand Down
3 changes: 2 additions & 1 deletion src/components/sidebar/sidebar_item.jsx
@@ -1,6 +1,7 @@
import React from 'react';
import { Link, withRouter } from 'react-router';
import PropTypes from 'prop-types';
import { shortenString } from 'helpers';

class SidebarItem extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -32,7 +33,7 @@ class SidebarItem extends React.Component {
<div className={`sidebar-item`} id={link}>
<Link to={`/${link}`}>
{ this.renderIcon() }
<span>{span}</span>
<span>{shortenString(span, 19)}</span>
</Link>
</div>
);
Expand Down

0 comments on commit a0517f4

Please sign in to comment.