File tree Expand file tree Collapse file tree 1 file changed +21
-14
lines changed
templates/react-javascript/src/pages Expand file tree Collapse file tree 1 file changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,30 @@ import "../index.css";
22import React from "react" ;
33import { Button } from "@trussworks/react-uswds" ;
44import { Link } from "react-router-dom" ;
5+ import { useRadFishConfig } from "../hooks/useRadFishConfig.jsx" ;
56
67function HomePage ( ) {
8+ const config = useRadFishConfig ( ) ;
9+
710 return (
8- < div className = "display-flex flex-column flex-align-center" >
9- < img src = "/icons/radfish.png" alt = "RADFish logo" height = "200" />
10- < p >
11- Edit < code > src/App.js</ code > and save to reload.
12- </ p >
13- < p >
14- < Link
15- to = "https://nmfs-radfish.github.io/radfish/developer-documentation/getting-started"
16- target = "_blank"
17- >
18- < Button > Documentation</ Button >
19- </ Link >
20- </ p >
21- </ div >
11+ < div className = "display-flex flex-column flex-align-center" >
12+ < img
13+ src = { config . icons . logo }
14+ alt = { `${ config . app . shortName } logo` }
15+ height = "200"
16+ />
17+ < p >
18+ Edit < code > src/App.js</ code > and save to reload.
19+ </ p >
20+ < p >
21+ < Link
22+ to = "https://nmfs-radfish.github.io/radfish/developer-documentation/getting-started"
23+ target = "_blank"
24+ >
25+ < Button > Documentation</ Button >
26+ </ Link >
27+ </ p >
28+ </ div >
2229 ) ;
2330}
2431
You can’t perform that action at this time.
0 commit comments