make org select box funcitonal

This commit is contained in:
Milo Schwartz
2024-11-02 15:50:46 -04:00
parent 54ba205fc0
commit d6387de21b

View File

@@ -123,7 +123,12 @@ export default function Header({ email, orgName, name, orgs }: HeaderProps) {
</div>
</div>
<Select defaultValue={orgName}>
<Select
defaultValue={orgName}
onValueChange={(val) => {
router.push(`/${val}/settings`);
}}
>
<SelectTrigger className="w-[100px] md:w-[180px]">
<SelectValue placeholder="Select an org" />
</SelectTrigger>