@@ -42,6 +42,7 @@ const getExpression =
|
||||
case 'Today':
|
||||
case 'Tomorrow':
|
||||
case 'User ID':
|
||||
case 'Moment of the day':
|
||||
case 'Yesterday': {
|
||||
return `${variableName} = ${options.type}`
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FormLabel, Stack, Text } from '@chakra-ui/react'
|
||||
import { Alert, AlertIcon, FormLabel, Stack, Tag, Text } from '@chakra-ui/react'
|
||||
import { CodeEditor } from '@/components/inputs/CodeEditor'
|
||||
import { SetVariableOptions, Variable, valueTypes } from '@typebot.io/schemas'
|
||||
import React from 'react'
|
||||
@@ -131,6 +131,18 @@ const SetVariableValue = ({
|
||||
</Stack>
|
||||
)
|
||||
}
|
||||
case 'Moment of the day': {
|
||||
return (
|
||||
<Alert fontSize="sm">
|
||||
<AlertIcon />
|
||||
<Text>
|
||||
Will return either <Tag size="sm">morning</Tag>,{' '}
|
||||
<Tag size="sm">afternoon</Tag>,<Tag size="sm">evening</Tag> or{' '}
|
||||
<Tag size="sm">night</Tag> based on the current user time.
|
||||
</Text>
|
||||
</Alert>
|
||||
)
|
||||
}
|
||||
case 'Random ID':
|
||||
case 'Today':
|
||||
case 'Tomorrow':
|
||||
|
||||
Reference in New Issue
Block a user