Skip to content

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

mobile: improve tab button

Ammar Ahmed9208140b979e
diff --git a/apps/mobile/app/components/sheets/editor-tabs/index.tsx b/apps/mobile/app/components/sheets/editor-tabs/index.tsx
index ec2b63034..cfd740b04 100644
--- a/apps/mobile/app/components/sheets/editor-tabs/index.tsx
+++ b/apps/mobile/app/components/sheets/editor-tabs/index.tsx
@@ -181,6 +181,7 @@ export default function EditorTabs({
}: {
close?: (ctx?: string | undefined) => void;
}) {
+ const { colors } = useThemeColors();
const [tabs, currentTab] = useTabStore((state) => [
state.tabs,
state.currentTab
@@ -217,20 +218,13 @@ export default function EditorTabs({
}}
>
<Heading size={SIZE.lg}>{strings.tabs()}</Heading>
- <Button
+ <IconButton
onPress={() => {
useTabStore.getState().newTab();
close?.();
}}
- title={strings.newTab()}
- icon="plus"
- style={{
- flexDirection: "row",
- justifyContent: "flex-start",
- borderRadius: 100,
- height: 35
- }}
- iconSize={SIZE.lg}
+ name="plus"
+ color={colors.primary.accent}
/>
</View>