New menu layout.

This commit is contained in:
Mike Cao 2025-05-14 13:31:07 -07:00
parent 0cfee43814
commit 1c22c18de5
17 changed files with 103 additions and 47 deletions

View file

@ -106,6 +106,7 @@ export function DateFilter({
placeholder={formatMessage(labels.selectDate)}
onChange={handleChange}
renderValue={renderValue}
popoverProps={{ style: { width: 200 } }}
>
{options.map(({ label, value, divider }: any) => {
return (

View file

@ -85,8 +85,8 @@ export function WebsiteDateFilter({
/>
{!isAllTime && compare && (
<Row alignItems="center" gap>
<Text>VS</Text>
<Select selectedKey={compare} onSelectionChange={handleSelect} style={{ width: '200px' }}>
<Text weight="bold">VS</Text>
<Select value={compare} onChange={handleSelect} popoverProps={{ style: { width: 200 } }}>
<ListItem id="prev">{formatMessage(labels.previousPeriod)}</ListItem>
<ListItem id="yoy">{formatMessage(labels.previousYear)}</ListItem>
</Select>