mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix Button key not added
This commit is contained in:
@@ -14,6 +14,7 @@ export const Button = ({
|
|||||||
title = '',
|
title = '',
|
||||||
icon,
|
icon,
|
||||||
color = 'accent',
|
color = 'accent',
|
||||||
|
key
|
||||||
}) => {
|
}) => {
|
||||||
const [state, dispatch] = useTracked();
|
const [state, dispatch] = useTracked();
|
||||||
const {colors, tags, premiumUser} = state;
|
const {colors, tags, premiumUser} = state;
|
||||||
@@ -22,6 +23,7 @@ export const Button = ({
|
|||||||
return (
|
return (
|
||||||
<PressableButton
|
<PressableButton
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
|
key={key}
|
||||||
color={grayed ? colors.nav : usedColor}
|
color={grayed ? colors.nav : usedColor}
|
||||||
selectedColor={grayed ? colors.nav : usedColor}
|
selectedColor={grayed ? colors.nav : usedColor}
|
||||||
alpha={grayed ? (!colors.night ? -0.04 : 0.04) : -0.1}
|
alpha={grayed ? (!colors.night ? -0.04 : 0.04) : -0.1}
|
||||||
|
|||||||
Reference in New Issue
Block a user