Skip to content

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

fix button ui in announcement

ammarahm-ed100e59d81350
diff --git a/apps/mobile/src/components/SimpleList/announcement.js b/apps/mobile/src/components/SimpleList/announcement.js
index ad49cfebc..6db928f54 100644
--- a/apps/mobile/src/components/SimpleList/announcement.js
+++ b/apps/mobile/src/components/SimpleList/announcement.js
@@ -132,20 +132,20 @@ export const Announcement = ({color}) => {
<>
<Button
key={item.title}
- type={index === 0 ? 'accent' : 'shade'}
title={item.title}
fontSize={SIZE.md}
buttonType={{
- color: color
- ? index === 0
+ color:
+ index === 0
+ ? color
+ ? color
+ : colors.accent
+ : color
? RGB_Linear_Shade(
colors.night ? 0.04 : -0.04,
hexToRGBA(color, 0.12)
)
- : color
- : index === 0
- ? colors.accent
- : colors.shade,
+ : colors.shade,
text:
index !== 0
? color
@@ -157,9 +157,11 @@ export const Announcement = ({color}) => {
: index === 0
? colors.accent
: colors.shade,
- opacity: 0.12
+ opacity: 1
}}
onPress={async () => {
+ console.log(index);
+ return;
if (item.type === 'link') {
try {
await openLinkInBrowser(item.data, state.colors);