Skip to content

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

fix Button key not added

ammarahm-ed0dfaf60d1bbe
diff --git a/apps/mobile/src/components/Button/index.js b/apps/mobile/src/components/Button/index.js
index 6f74c02ca..2ee97dc4d 100644
--- a/apps/mobile/src/components/Button/index.js
+++ b/apps/mobile/src/components/Button/index.js
@@ -14,6 +14,7 @@ export const Button = ({
title = '',
icon,
color = 'accent',
+ key
}) => {
const [state, dispatch] = useTracked();
const {colors, tags, premiumUser} = state;
@@ -22,6 +23,7 @@ export const Button = ({
return (
<PressableButton
onPress={onPress}
+ key={key}
color={grayed ? colors.nav : usedColor}
selectedColor={grayed ? colors.nav : usedColor}
alpha={grayed ? (!colors.night ? -0.04 : 0.04) : -0.1}