mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 10:05:36 +01:00
Add board selector to top navigation
This commit is contained in:
parent
a1f3ad89f6
commit
e2b391af28
5 changed files with 128 additions and 6 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue