mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix error when rendering items in premium dialog
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React from 'react';
|
||||
import React, { Fragment } from 'react';
|
||||
import {View} from 'react-native';
|
||||
import {allowedPlatforms} from '../../provider/stores';
|
||||
import {ProFeatures} from '../ResultDialog/pro-features';
|
||||
@@ -47,6 +47,7 @@ const renderItems = {
|
||||
title: Title,
|
||||
description: Description,
|
||||
body: Body,
|
||||
text:Body,
|
||||
image: Photo,
|
||||
list: List,
|
||||
subheading: SubHeading,
|
||||
@@ -55,7 +56,7 @@ const renderItems = {
|
||||
};
|
||||
|
||||
export const renderItem = ({item, index, color,inline}) => {
|
||||
const Item = renderItems[item.type];
|
||||
const Item = renderItems[item.type] || Fragment
|
||||
|
||||
return <Item key={item.text || item.src || item.type} {...item} index={index} color={color} inline={inline} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user