interface: fix default app tiles linking as anchor

This commit is contained in:
Matilde Park 2020-10-07 00:32:29 -04:00
parent bb2c847e0d
commit 9d5645f8d7

View File

@ -18,7 +18,7 @@ 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= (<Link to={to}>{childElement}</Link>);
} else {
childElement= (<a href={to}>{childElement}</a>);