mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix Button key not added
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user