From 9d5645f8d7e4eaa4fe281454a1a15c3d4c77e6dd Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Wed, 7 Oct 2020 00:32:29 -0400 Subject: [PATCH] interface: fix default app tiles linking as anchor --- .../src/views/apps/launch/components/tiles/tile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/interface/src/views/apps/launch/components/tiles/tile.js b/pkg/interface/src/views/apps/launch/components/tiles/tile.js index ca65f07aa6..a76baa34db 100644 --- a/pkg/interface/src/views/apps/launch/components/tiles/tile.js +++ b/pkg/interface/src/views/apps/launch/components/tiles/tile.js @@ -10,7 +10,7 @@ import { Box } from "@tlon/indigo-react"; export default class Tile extends React.Component { render() { const { bg, to, p, ...props } = this.props; - + let childElement = ( {props.children} @@ -18,12 +18,12 @@ export default class Tile extends React.Component { ); if (to) { - if (routeList.indexOf(to) === -1) { + if (routeList.indexOf(to) !== -1 || to === '/~landscape/home' || to === '/~profile') { childElement= ({childElement}); } else { childElement= ({childElement}); } - + } return (