Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

support custom icon in simple list

ammarahm-ed246d0f5d7faf
diff --git a/apps/mobile/src/components/SimpleList/empty.js b/apps/mobile/src/components/SimpleList/empty.js
index 54fbc04d4..aa6e52b8d 100644
--- a/apps/mobile/src/components/SimpleList/empty.js
+++ b/apps/mobile/src/components/SimpleList/empty.js
@@ -1,15 +1,14 @@
import React from 'react';
-import { ActivityIndicator, useWindowDimensions, View } from 'react-native';
-import { useSafeAreaInsets } from 'react-native-safe-area-context';
-import { useTracked } from '../../provider';
-import { COLORS_NOTE } from '../../utils/Colors';
-import { SIZE } from '../../utils/SizeUtils';
-import { Button } from '../Button';
+import {ActivityIndicator, useWindowDimensions, View} from 'react-native';
+import {useSafeAreaInsets} from 'react-native-safe-area-context';
+import {useTracked} from '../../provider';
+import {COLORS_NOTE} from '../../utils/Colors';
+import {SIZE} from '../../utils/SizeUtils';
+import {Button} from '../Button';
import Seperator from '../Seperator';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
-
export const Empty = ({
loading = true,
placeholderData,
@@ -53,7 +52,7 @@ export const Empty = ({
<Button
onPress={placeholderData.action}
title={placeholderData.button}
- icon="plus"
+ icon={placeholderData.buttonIcon || 'plus'}
type="accent"
fontSize={SIZE.md}
accentColor="bg"