mirror of
https://github.com/urbit/shrub.git
synced 2024-12-26 13:31:36 +03:00
interface: fix default app tiles linking as anchor
This commit is contained in:
parent
bb2c847e0d
commit
9d5645f8d7
@ -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>);
|
||||
|
Loading…
Reference in New Issue
Block a user