File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -30,23 +30,31 @@ class App extends Component {
30
30
< Switch >
31
31
< Route
32
32
exact
33
- path = "/"
33
+ path = { process . env . PUBLIC_URL + "/" }
34
34
render = { ( ) => (
35
35
< CovidApp
36
36
setDarkMode = { this . setDarkMode }
37
37
isDarkMode = { this . state . isDarkMode }
38
38
/>
39
39
) }
40
40
/>
41
- < Route exact path = "/symptoms" render = { ( ) => < h1 > symptoms</ h1 > } />
42
41
< Route
43
42
exact
44
- path = "/stay-safe"
43
+ path = { process . env . PUBLIC_URL + "/symptoms" }
44
+ render = { ( ) => < h1 > symptoms</ h1 > }
45
+ />
46
+ < Route
47
+ exact
48
+ path = { process . env . PUBLIC_URL + "/stay-safe" }
45
49
render = { ( ) => < h1 > Stay Safe</ h1 > }
46
50
/>
47
- < Route exact path = "/help" render = { ( ) => < h1 > Help Page</ h1 > } />
48
51
< Route
49
- path = "/"
52
+ exact
53
+ path = { process . env . PUBLIC_URL + "/help" }
54
+ render = { ( ) => < h1 > Help Page</ h1 > }
55
+ />
56
+ < Route
57
+ path = { process . env . PUBLIC_URL + "/" }
50
58
render = { ( ) => (
51
59
< CovidApp
52
60
setDarkMode = { this . setDarkMode }
You can’t perform that action at this time.
0 commit comments