Fixed website select.

This commit is contained in:
Mike Cao 2023-10-15 14:07:53 -07:00
parent 69a189aae7
commit aa5d81d6a1
3 changed files with 7 additions and 1 deletions

View File

@ -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>

View File

@ -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}

View File

@ -0,0 +1,4 @@
.dropdown {
max-height: 400px;
overflow-y: auto;
}