Skip to content

Conversation

nahidshahin
Copy link
Contributor

No description provided.

@luizrrodrigues luizrrodrigues changed the title issues-2700: change link of Topcoder Logo Fix Issue #104 : change link of Topcoder Logo Jan 14, 2020
@luizrrodrigues luizrrodrigues self-requested a review January 14, 2020 11:20
@luizrrodrigues luizrrodrigues self-assigned this Jan 14, 2020
Copy link
Collaborator

@luizrrodrigues luizrrodrigues left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't hardcoded the URL, put this inside config file.

Use URL.BASE to non logged user and add a new config to logged user.

You able to see the config files in community-app/config

@@ -15,7 +15,7 @@ const MobileNav = ({ showLeftMenu, onClickLeftMenu, logo, rightMenu }) => (
)}
</button>
</div>
<a href='/'>
<a href={loggedIn ? '/my-dashboard' : '/'}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't hardcoded the URL, put this inside config file.

Use URL.BASE to non logged user and add a new config to logged user.

@@ -36,7 +37,7 @@ const PrimaryNav = ({
<a
className={cn(styles.tcLogo, collapsed && styles.tcLogoPush)}
onClick={onClickLogo}
href='/'
href={loggedIn ? '/my-dashboard' : '/'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't hardcoded the URL, put this inside config file.

Use URL.BASE to non logged user and add a new config to logged user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants