diff --git a/app/containers/UIKit/Actions.tsx b/app/containers/UIKit/Actions.tsx index c8bf9ff54..a23b030af 100644 --- a/app/containers/UIKit/Actions.tsx +++ b/app/containers/UIKit/Actions.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { BLOCK_CONTEXT } from '@rocket.chat/ui-kit'; +import { BlockContext } from '@rocket.chat/ui-kit'; import Button from '../Button'; import I18n from '../../i18n'; @@ -10,7 +10,7 @@ export const Actions = ({ blockId, appId, elements, parser }: IActions) => { const renderedElements = showMoreVisible ? elements?.slice(0, 5) : elements; const Elements = () => ( - <>{renderedElements?.map(element => parser?.renderActions({ blockId, appId, ...element }, BLOCK_CONTEXT.ACTION, parser))} + <>{renderedElements?.map(element => parser?.renderActions({ blockId, appId, ...element }, BlockContext.ACTION, parser))} ); return ( diff --git a/app/containers/UIKit/Context.tsx b/app/containers/UIKit/Context.tsx index e39580140..e6bde5d27 100644 --- a/app/containers/UIKit/Context.tsx +++ b/app/containers/UIKit/Context.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { StyleSheet, View } from 'react-native'; -import { BLOCK_CONTEXT } from '@rocket.chat/ui-kit'; +import { BlockContext } from '@rocket.chat/ui-kit'; import { IContext } from './interfaces'; @@ -13,5 +13,5 @@ const styles = StyleSheet.create({ }); export const Context = ({ elements, parser }: IContext) => ( - {elements?.map(element => parser?.renderContext(element, BLOCK_CONTEXT.CONTEXT, parser))} + {elements?.map(element => parser?.renderContext(element, BlockContext.CONTEXT, parser))} ); diff --git a/app/containers/UIKit/DatePicker.tsx b/app/containers/UIKit/DatePicker.tsx index 0b8bff209..f8ddaebc3 100644 --- a/app/containers/UIKit/DatePicker.tsx +++ b/app/containers/UIKit/DatePicker.tsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import DateTimePicker, { Event } from '@react-native-community/datetimepicker'; import Touchable from 'react-native-platform-touchable'; -import { BLOCK_CONTEXT } from '@rocket.chat/ui-kit'; +import { BlockContext } from '@rocket.chat/ui-kit'; import moment from 'moment'; import Button from '../Button'; @@ -58,7 +58,7 @@ export const DatePicker = ({ element, language, action, context, loading, value, let button = placeholder ?