You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: app/containers/FeaturePage/index.js
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,20 @@ import A from 'A';
15
15
importstylesfrom'./styles.css';
16
16
17
17
exportclassFeaturePageextendsReact.Component{
18
-
onChangeRoute=(url)=>{
19
-
this.props.changeRoute(url);
18
+
/**
19
+
* Changes the route
20
+
*
21
+
* @param {string} route The route we want to go to
22
+
*/
23
+
openRoute=(route)=>{
24
+
this.props.changeRoute(route);
20
25
};
21
26
22
-
changeRouteToHome=()=>{
23
-
this.onChangeRoute('/');
27
+
/**
28
+
* Changed route to '/'
29
+
*/
30
+
openHomePage=()=>{
31
+
this.openRoute('/');
24
32
};
25
33
26
34
render(){
@@ -47,7 +55,7 @@ export class FeaturePage extends React.Component {
47
55
<p><Ahref="http://www.html5rocks.com/en/tutorials/service-worker/introduction/"><strong>ServiceWorker</strong></A> and <Ahref="http://www.html5rocks.com/en/tutorials/appcache/beginner/"><strong>AppCache</strong></A> make it possible to use the application offline. As soon as the website has been opened once, it is cached and available without a network connection. <Ahref="https://developer.chrome.com/multidevice/android/installtohomescreen"><strong><codeclassName={styles.code}>manifest.json</code></strong></A> is specifically for Chrome on Android. Users can add the website to the homescreen and use it like a native app!</p>
0 commit comments