Skip to content

Commit c644970

Browse files
committed
update routes variable naming
1 parent 29e301e commit c644970

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/App/Navigation/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const Navigation = ({
1717
<Link to={routes.PROFILE}>Profile</Link>
1818
</div>
1919
<div className="Navigation-link">
20-
<Link to={routes.HOME}>Organization</Link>
20+
<Link to={routes.ORGANIZATION}>Organization</Link>
2121
</div>
2222

23-
{pathname === routes.HOME && (
23+
{pathname === routes.ORGANIZATION && (
2424
<OrganizationSearch
2525
initialValue={initialValue}
2626
onOrganizationSearch={onOrganizationSearch}

src/App/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class App extends Component {
3535
<div className="App-main">
3636
<Route
3737
exact
38-
path={routes.HOME}
38+
path={routes.ORGANIZATION}
3939
component={() => (
4040
<div className="App-content_large-header">
4141
<Organization organizationName={organizationName} />

src/constants/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export const HOME = '/';
1+
export const ORGANIZATION = '/';
22
export const PROFILE = '/profile';

0 commit comments

Comments
 (0)