summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/context/PortfolioSelector.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-09-15 10:17:44 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-09-20 16:07:06 +0200
commit24b857ae580fcbea441e7cb91bc7aba681fc6c8b (patch)
tree3a16128ba34400ff8b4a8cb81e1e3556e167264f /opendc-web/opendc-web-ui/src/components/context/PortfolioSelector.js
parent9dd75a9a40f7f2aebbc617980c99085f9dc688f8 (diff)
feat(web/ui): Reduce height of application header
This change reduces the height of the application header to 3.5rem to increase the screen real-estate that we can use for the application content.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/context/PortfolioSelector.js')
-rw-r--r--opendc-web/opendc-web-ui/src/components/context/PortfolioSelector.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/context/PortfolioSelector.js b/opendc-web/opendc-web-ui/src/components/context/PortfolioSelector.js
index c4f2d50e..e401e6fc 100644
--- a/opendc-web/opendc-web-ui/src/components/context/PortfolioSelector.js
+++ b/opendc-web/opendc-web-ui/src/components/context/PortfolioSelector.js
@@ -34,7 +34,8 @@ function PortfolioSelector({ activePortfolio }) {
return (
<ContextSelector
- label="Portfolio"
+ id="portfolio"
+ toggleText={activePortfolio ? `Portfolio: ${activePortfolio.name}` : 'Select portfolio'}
activeItem={activePortfolio}
items={portfolios}
onSelect={(portfolio) => router.push(`/projects/${portfolio.project.id}/portfolios/${portfolio.number}`)}