From a8120867b9125dd49bad2b0e8c3ac08a496abc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Tue, 30 Jun 2015 16:58:26 +0200 Subject: [PATCH] add call to action on empty piece list --- js/components/ascribe_accordion_list/accordion_list.js | 5 ++++- js/components/register_piece.js | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/components/ascribe_accordion_list/accordion_list.js b/js/components/ascribe_accordion_list/accordion_list.js index 4fa7d9d9..454e6dbc 100644 --- a/js/components/ascribe_accordion_list/accordion_list.js +++ b/js/components/ascribe_accordion_list/accordion_list.js @@ -18,7 +18,10 @@ let AccordionList = React.createClass({ ); } else if(this.props.itemList.length === 0) { return ( -

You don't have any works yet...

+
+

You don't have any works yet...

+

To register one, click here!

+
); } else { return ( diff --git a/js/components/register_piece.js b/js/components/register_piece.js index 2e7fc184..44fc61b4 100644 --- a/js/components/register_piece.js +++ b/js/components/register_piece.js @@ -2,7 +2,6 @@ import React from 'react'; -import { getCookie } from '../utils/fetch_api_utils'; import AppConstants from '../constants/application_constants'; import Router from 'react-router';