From 1079cb42bc0598191ea32067076b7d3f2e40be8e Mon Sep 17 00:00:00 2001 From: Frank Sauerburger <frank@sauerburger.com> Date: Tue, 26 Mar 2019 12:20:59 +0100 Subject: [PATCH] Update edit and delete buttons --- app/components/RouteTile.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/RouteTile.jsx b/app/components/RouteTile.jsx index e2afc3c..59d5705 100644 --- a/app/components/RouteTile.jsx +++ b/app/components/RouteTile.jsx @@ -65,9 +65,9 @@ const RouteTile = ({title, stops, onAdd, url, onDelete, onClear}) => { </div> : <div> - <h2>{title}</h2> - { url === undefined && <Button style={{float: 'right'}} onClick={onDelete} type="button" value="🗙" /> } + { url === undefined && <Button style={{float: 'right'}} onClick={onDelete} type="button" value="-" /> } { url === undefined && <Button style={{float: 'right'}} onClick={onClear} type="button" value="🖉" /> } + <h2>{title}</h2> { url !== undefined && <Div onClick={(e) => { var range = document.createRange(); -- GitLab