Fixed website select.
This commit is contained in:
@@ -109,7 +109,7 @@ export default function WebsiteMenuView({ websiteId, websiteDomain }) {
|
||||
return (
|
||||
<div className={styles.layout}>
|
||||
<div className={styles.menu}>
|
||||
<LinkButton href={pathname} className={styles.back}>
|
||||
<LinkButton href={pathname} className={styles.back} variant="quiet">
|
||||
<Icon rotate={180}>
|
||||
<Icons.ArrowRight />
|
||||
</Icon>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user