diff --git a/config/react.go b/config/react.go index 6cfcd9349..678c20ddd 100644 --- a/config/react.go +++ b/config/react.go @@ -8,8 +8,14 @@ type reactHeader struct { Enabled bool } +type reactSidenavItem struct { + Path string + Label string + Icon string +} type reactSidenav struct { Enabled bool + Items []reactSidenavItem } type reactAccount struct { diff --git a/templates/commit0/commit0.tmpl b/templates/commit0/commit0.tmpl index e2266aefa..ad05ac0bd 100644 --- a/templates/commit0/commit0.tmpl +++ b/templates/commit0/commit0.tmpl @@ -28,6 +28,13 @@ react: required: false sidenav: enabled: true + items: + - path: / + label: Home + icon: home + - path: /account + label: Account + icon: account_circle views: - path: /account component: account diff --git a/templates/react/public/index.html b/templates/react/public/index.html index c240d2ca8..807d6308d 100644 --- a/templates/react/public/index.html +++ b/templates/react/public/index.html @@ -10,6 +10,7 @@ content="Web site created using create-react-app" /> +