summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/context/ProjectSelector.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/ProjectSelector.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/ProjectSelector.js')
-rw-r--r--opendc-web/opendc-web-ui/src/components/context/ProjectSelector.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/context/ProjectSelector.js b/opendc-web/opendc-web-ui/src/components/context/ProjectSelector.js
index 5f47c798..f2791b38 100644
--- a/opendc-web/opendc-web-ui/src/components/context/ProjectSelector.js
+++ b/opendc-web/opendc-web-ui/src/components/context/ProjectSelector.js
@@ -36,14 +36,14 @@ function ProjectSelector() {
return (
<ContextSelector
- label="Project"
- activeItem={activeProject}
+ id="project"
+ type="app"
+ toggleText={activeProject ? activeProject.name : 'Select project'}
items={projects}
onSelect={(project) => router.push(`/projects/${project.id}`)}
onToggle={setOpen}
isOpen={isOpen}
isFullHeight
- type="app"
/>
)
}