diff options
Diffstat (limited to 'frontend/app/views/page/components/tile.handle.js')
| -rw-r--r-- | frontend/app/views/page/components/tile.handle.js | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/frontend/app/views/page/components/tile.handle.js b/frontend/app/views/page/components/tile.handle.js index 090069d..d7b5d05 100644 --- a/frontend/app/views/page/components/tile.handle.js +++ b/frontend/app/views/page/components/tile.handle.js @@ -94,31 +94,16 @@ const TileHandle = ({ tile, bounds, box, viewing, onMouseDown, onDoubleClick }) content = "SCRIPT" } } - if (viewing && tile.href) { - if (tile.href.indexOf('http') === 0) { - return ( - <a href={tile.href} rel='noopener'> - <div - className={className} - style={style} - > - {content} - </div> - </a> - ) - } else { - return ( - <Link to={tile.href}> - <div - className={className} - onMouseDown={onMouseDown} - style={style} - > - {content} - </div> - </Link> - ) - } + if (viewing) { + return ( + <div + className={className} + onMouseDown={onMouseDown} + style={style} + > + {content} + </div> + ) } else { return ( <div |
