mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
Fixed website select.
This commit is contained in:
parent
69a189aae7
commit
aa5d81d6a1
3 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { Dropdown, Item } from 'react-basics';
|
||||
import useApi from 'components/hooks/useApi';
|
||||
import useMessages from 'components/hooks/useMessages';
|
||||
import styles from './WebsiteSelect.module.css';
|
||||
|
||||
export function WebsiteSelect({ websiteId, onSelect }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
|
@ -13,6 +14,7 @@ export function WebsiteSelect({ websiteId, onSelect }) {
|
|||
|
||||
return (
|
||||
<Dropdown
|
||||
menuProps={{ className: styles.dropdown }}
|
||||
items={data?.data}
|
||||
value={websiteId}
|
||||
renderValue={renderValue}
|
||||
|
|
|
|||
4
src/components/input/WebsiteSelect.module.css
Normal file
4
src/components/input/WebsiteSelect.module.css
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
.dropdown {
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue