From f923e74d57e4a6574e5460139ffe5bd7124506c1 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Wed, 1 Feb 2017 11:48:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA=D0=B0=20xxx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/torrent.js | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/torrent.js b/src/torrent.js index 83fe842..d74eb18 100644 --- a/src/torrent.js +++ b/src/torrent.js @@ -3,7 +3,28 @@ import formatBytes from './format-bytes' import {ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; -const contentIcon = (type) => { +const contentIcon = (type, category) => { + if(category == 'xxx') + { + return ( + + + + + + ) + } + switch(type) { case 'video': @@ -182,7 +203,7 @@ return ( } - leftIcon={contentIcon(torrent.contentType)} + leftIcon={contentIcon(torrent.contentType, torrent.contentCategory)} rightIcon={