Add board selector to top navigation

This commit is contained in:
Mike Cao 2026-02-12 17:26:52 -08:00
parent a1f3ad89f6
commit e2b391af28
5 changed files with 128 additions and 6 deletions

View file

@ -1,5 +1,5 @@
import { Icon, ListItem, Row, Select, type SelectProps, Text } from '@umami/react-zen';
import { useState } from 'react';
import { useEffect, useState } from 'react';
import { Empty } from '@/components/common/Empty';
import {
useLoginQuery,
@ -35,6 +35,10 @@ export function WebsiteSelect({
);
const listItems: { id: string; name: string }[] = data?.data || [];
useEffect(() => {
setName(website?.name);
}, [website?.name]);
const handleSearch = (value: string) => {
setSearch(value);
};