Skip to content

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

mobile: fix beta tags ui

ammarahm-ed89d941401a3b
diff --git a/apps/mobile/app/components/header/title.tsx b/apps/mobile/app/components/header/title.tsx
index 97c83933e..3da8ae646 100644
--- a/apps/mobile/app/components/header/title.tsx
+++ b/apps/mobile/app/components/header/title.tsx
@@ -114,7 +114,15 @@ export const Title = () => {
#
</Heading>
) : null}
- {title} <Tag visible={currentScreen.beta} text="BETA" />
+ {title}{" "}
+ <Tag
+ visible={currentScreen.beta}
+ text="BETA"
+ style={{
+ backgroundColor: "transparent"
+ }}
+ textColor={colors.primary.accent}
+ />
</Heading>
) : null}
</>
diff --git a/apps/mobile/app/components/side-menu/menu-item.js b/apps/mobile/app/components/side-menu/menu-item.js
index 632e533b2..81f060754 100644
--- a/apps/mobile/app/components/side-menu/menu-item.js
+++ b/apps/mobile/app/components/side-menu/menu-item.js
@@ -128,7 +128,21 @@ export const MenuItem = React.memo(
<Paragraph size={SIZE.md}>{item.name}</Paragraph>
)}
- <Tag visible={item.isBeta} text="BETA" />
+ {item.isBeta ? (
+ <View
+ style={{
+ borderRadius: 100,
+ backgroundColor: colors.primary.accent,
+ paddingHorizontal: 4,
+ marginLeft: 5,
+ paddingVertical: 2
+ }}
+ >
+ <Paragraph color={colors.static.white} size={SIZE.xxs}>
+ BETA
+ </Paragraph>
+ </View>
+ ) : null}
</View>
{item.switch ? (