Retention report UI updates.

This commit is contained in:
Mike Cao 2023-08-17 03:21:20 -07:00
parent 9b8fa08d82
commit 2c8996b68f
12 changed files with 110 additions and 93 deletions

View file

@ -80,10 +80,10 @@ export function InsightsParameters() {
<Icons.Plus />
</Icon>
</TooltipPopup>
<Popup position="bottom" alignment="start">
{(close, element) => {
<Popup position="bottom" alignment="start" className={styles.popup}>
{close => {
return (
<PopupForm element={element} onClose={close}>
<PopupForm onClose={close}>
{id === 'fields' && (
<FieldSelectForm
items={fieldOptions}
@ -114,7 +114,7 @@ export function InsightsParameters() {
return (
<FormRow key={label} label={label} action={<AddButton id={id} onAdd={handleAdd} />}>
<ParameterList items={parameterData[id]} onRemove={index => handleRemove(id, index)}>
{({ name, filter, value, label }) => {
{({ name, filter, value }) => {
return (
<div className={styles.parameter}>
{id === 'fields' && (

View file

@ -10,3 +10,8 @@
.op {
font-weight: bold;
}
.popup {
margin-top: -10px;
margin-left: 30px;
}