Skip to content

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

minor ui updates

ammarahm-edbedbd2e8bd66
diff --git a/apps/mobile/src/components/RateDialog/index.js b/apps/mobile/src/components/RateDialog/index.js
index 9ebf41f69..d5cb4435f 100644
--- a/apps/mobile/src/components/RateDialog/index.js
+++ b/apps/mobile/src/components/RateDialog/index.js
@@ -1,11 +1,11 @@
-import React, { useEffect, useRef, useState } from 'react';
-import { Linking, Platform, View } from 'react-native';
-import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
-import { eCloseRateDialog, eOpenRateDialog } from '../../utils/Events';
-import { MMKV } from '../../utils/mmkv';
-import { SIZE } from '../../utils/SizeUtils';
+import React, {useEffect, useRef, useState} from 'react';
+import {Linking, Platform, View} from 'react-native';
+import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';
+import {eCloseRateDialog, eOpenRateDialog} from '../../utils/Events';
+import {MMKV} from '../../utils/mmkv';
+import {SIZE} from '../../utils/SizeUtils';
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
-import { Button } from '../Button';
+import {Button} from '../Button';
import Seperator from '../Seperator';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
@@ -44,8 +44,8 @@ const RateDialog = () => {
await MMKV.setItem(
'askForRating',
JSON.stringify({
- timestamp: Date.now() + 86400000 * 2,
- }),
+ timestamp: Date.now() + 86400000 * 2
+ })
);
setVisible(false);
}}>
@@ -53,13 +53,12 @@ const RateDialog = () => {
style={{
width: '100%',
alignSelf: 'center',
- paddingHorizontal: 12,
+ paddingHorizontal: 12
}}>
<Heading>Do you enjoy using Notesnook?</Heading>
<Paragraph size={SIZE.md}>
- It took us a year to bring Notesnook to life. How has been your
- experience using it. It will take you a moment to rate it. Please let
- us know what you think!
+ It took us a year to bring Notesnook to life. Share your experience
+ and suggestions to help us improve it.
</Paragraph>
<Seperator half />
@@ -68,7 +67,7 @@ const RateDialog = () => {
await Linking.openURL(
Platform.OS === 'ios'
? 'https://bit.ly/notesnook-ios'
- : 'https://bit.ly/notesnook-and',
+ : 'https://bit.ly/notesnook-and'
);
await MMKV.setItem('askForRating', 'completed');
@@ -87,7 +86,7 @@ const RateDialog = () => {
flexDirection: 'row',
paddingTop: 12,
width: '100%',
- alignSelf: 'center',
+ alignSelf: 'center'
}}>
<Button
onPress={async () => {
@@ -105,8 +104,8 @@ const RateDialog = () => {
await MMKV.setItem(
'askForRating',
JSON.stringify({
- timestamp: Date.now() + 86400000 * 2,
- }),
+ timestamp: Date.now() + 86400000 * 2
+ })
);
setVisible(false);
}}
diff --git a/apps/mobile/src/views/Editor/HistoryComponent.js b/apps/mobile/src/views/Editor/HistoryComponent.js
index 2ca2bb684..32f3ba65f 100644
--- a/apps/mobile/src/views/Editor/HistoryComponent.js
+++ b/apps/mobile/src/views/Editor/HistoryComponent.js
@@ -10,10 +10,10 @@ const HistoryComponent = () => {
const {colors} = state;
const [historyState, setHistoryState] = useState({
undo: false,
- redo: false,
+ redo: false
});
- const onHistoryChange = (data) => {
+ const onHistoryChange = data => {
setHistoryState(data);
};
@@ -28,11 +28,11 @@ const HistoryComponent = () => {
return (
<>
<ActionIcon
- name="undo"
+ name="undo-variant"
disabled={!historyState.undo}
- color={colors.heading}
+ color={colors.pri}
customStyle={{
- marginLeft: 10,
+ marginLeft: 10
}}
onPress={() => {
if (!historyState.undo) return;
@@ -40,12 +40,9 @@ const HistoryComponent = () => {
}}
/>
<ActionIcon
- name="redo"
+ name="redo-variant"
disabled={!historyState.redo}
- color={colors.heading}
- customStyle={{
- marginLeft: 10,
- }}
+ color={colors.pri}
onPress={() => {
if (!historyState.redo) return;
tiny.call(EditorWebView, tiny.redo);
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/item.js b/apps/mobile/src/views/Editor/tiny/toolbar/item.js
index c7466f9cf..141e47d03 100644
--- a/apps/mobile/src/views/Editor/tiny/toolbar/item.js
+++ b/apps/mobile/src/views/Editor/tiny/toolbar/item.js
@@ -377,14 +377,9 @@ const ToolbarItem = ({
paddingHorizontal: 12,
fontFamily:
format === 'fontname' &&
- formatValue &&
- formatValue !== '-apple-system'
- ? formatValue
- : format === 'fontname' &&
- icon !== '-apple-system' &&
- icon
- ? icon
- : null
+ formatValue
+ ? formatValue === 'open sans' ? "OpenSans-Regular" : formatValue
+ : 'OpenSans-Regular'
}}
size={text.includes('%') ? SIZE.sm : SIZE.md}>
{currentText || text}
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js b/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js
index e67b37c34..28fe97ad6 100644
--- a/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js
+++ b/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js
@@ -115,7 +115,8 @@ const ToolbarLinkInput = ({format, value, setVisible}) => {
flexWrap: 'wrap',
fontSize: SIZE.sm,
flexShrink: 1,
- minWidth:'80%'
+ minWidth:'80%',
+ fontFamily:"OpenSans-Regular"
}}
autoCapitalize="none"
autoCorrect={false}