From 4a9cf28660ed3b7e02952d02035978d1d4ad3e7e Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Wed, 9 Dec 2020 23:26:30 +0100 Subject: add creator 2nd step & onKeyPress helper --- client/src/admin/jsx/MainScreen.jsx | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'client/src/admin/jsx/MainScreen.jsx') diff --git a/client/src/admin/jsx/MainScreen.jsx b/client/src/admin/jsx/MainScreen.jsx index ea2def5..8808dc5 100644 --- a/client/src/admin/jsx/MainScreen.jsx +++ b/client/src/admin/jsx/MainScreen.jsx @@ -1,5 +1,6 @@ import React, { Fragment } from 'react'; import { WithHover, t, goTo } from '../hocs'; +import { onKeyPress } from '../helpers' const MainScreen = ({ projects }) => (
@@ -7,16 +8,31 @@ const MainScreen = ({ projects }) => (
{ !projects.length && ( -

{ t('edit-current-project') }

+

+ { t('edit-current-project') } +

)} { !projects.length && ( -

{ t('show-saved-projects') }

+

+ { t('show-saved-projects') } +

)} -

+

{ t('create-new-project') }

-- cgit v1.2.3