(condition) Add more comparison operators

Including starts with, ends with, does not contain, is empty

Closes #410
This commit is contained in:
Baptiste Arnaud
2023-03-29 15:18:52 +02:00
parent bb45b33928
commit 80b7dbd19e
3 changed files with 39 additions and 8 deletions

View File

@@ -38,13 +38,14 @@ export const ComparisonItem = ({
items={Object.values(ComparisonOperators)}
placeholder="Select an operator"
/>
{item.comparisonOperator !== ComparisonOperators.IS_SET && (
<TextInput
defaultValue={item.value ?? ''}
onChange={handleChangeValue}
placeholder="Type a value..."
/>
)}
{item.comparisonOperator !== ComparisonOperators.IS_SET &&
item.comparisonOperator !== ComparisonOperators.IS_EMPTY && (
<TextInput
defaultValue={item.value ?? ''}
onChange={handleChangeValue}
placeholder="Type a value..."
/>
)}
</Stack>
)
}