remove fontFamily

This commit is contained in:
ammarahm-ed
2021-01-03 10:38:07 +05:00
parent a7dfd933eb
commit 867fdc715d
16 changed files with 27 additions and 25 deletions

View File

@@ -235,7 +235,7 @@ export const ActionSheetTagsSection = ({item, close}) => {
style={{ style={{
minWidth: 100, minWidth: 100,
zIndex: 10, zIndex: 10,
fontFamily: "sans-serif", //fontFamily: "sans-serif",
color: colors.pri, color: colors.pri,
paddingHorizontal: 5, paddingHorizontal: 5,
paddingVertical: 0, paddingVertical: 0,

View File

@@ -525,7 +525,7 @@ const styles = StyleSheet.create({
topicInput: { topicInput: {
padding: pv - 5, padding: pv - 5,
fontSize: SIZE.sm, fontSize: SIZE.sm,
fontFamily: "sans-serif", //fontFamily: "sans-serif",
paddingHorizontal: ph, paddingHorizontal: ph,
paddingRight: 40, paddingRight: 40,
paddingVertical: 10, paddingVertical: 10,

View File

@@ -10,15 +10,14 @@ export const DummyText = () => {
ref={dummyRef} ref={dummyRef}
style={[ style={[
{ {
fontFamily: "sans-serif", //fontFamily: "sans-serif",
fontSize: SIZE.sm, fontSize: SIZE.sm,
position:"absolute", position: 'absolute',
right: -1000, right: -1000,
top:-1000 top: -1000,
}, },
]}> ]}>
a a
</Text> </Text>
); );
}; };

View File

@@ -247,7 +247,7 @@ const styles = StyleSheet.create({
flexDirection: 'row', flexDirection: 'row',
}, },
buttonText: { buttonText: {
fontFamily: "sans-serif", //fontFamily: "sans-serif",
color: 'white', color: 'white',
fontSize: SIZE.sm, fontSize: SIZE.sm,
marginLeft: 5, marginLeft: 5,

View File

@@ -131,7 +131,7 @@ const Input = ({
const textStyle = { const textStyle = {
paddingHorizontal: 0, paddingHorizontal: 0,
fontSize: SIZE.md, fontSize: SIZE.md,
fontFamily: "sans-serif", //ontFamily: "sans-serif",
color: colors.pri, color: colors.pri,
paddingVertical: 0, paddingVertical: 0,
paddingBottom: 2.5, paddingBottom: 2.5,

View File

@@ -64,7 +64,7 @@ const styles = StyleSheet.create({
flexDirection: 'row', flexDirection: 'row',
}, },
buttonText: { buttonText: {
fontFamily: "sans-serif", //fontFamily: "sans-serif",
color: 'white', color: 'white',
fontSize: SIZE.sm, fontSize: SIZE.sm,
}, },

View File

@@ -238,7 +238,7 @@ const MoveNoteComponent = ({close, note, setNote}) => {
borderRadius: 5, borderRadius: 5,
minHeight: 45, minHeight: 45,
fontSize: SIZE.md, fontSize: SIZE.md,
fontFamily: "sans-serif", //fontFamily: "sans-serif",
padding: pv - 2, padding: pv - 2,
}, },
]} ]}
@@ -377,7 +377,7 @@ const MoveNoteComponent = ({close, note, setNote}) => {
borderRadius: 5, borderRadius: 5,
height: 40, height: 40,
fontSize: SIZE.sm, fontSize: SIZE.sm,
fontFamily: "sans-serif", //fontFamily: "sans-serif",
padding: pv - 2, padding: pv - 2,
}, },
]} ]}

View File

@@ -190,7 +190,7 @@ export const NotebookItem = ({
size={SIZE.xs} size={SIZE.xs}
style={{ style={{
marginRight: 10, marginRight: 10,
fontFamily: "sans-serif", //fontFamily: "sans-serif",
}}> }}>
{item && item.totalNotes && item.totalNotes > 1 {item && item.totalNotes && item.totalNotes > 1
? item.totalNotes + ' Notes' ? item.totalNotes + ' Notes'

View File

@@ -100,7 +100,7 @@ const styles = StyleSheet.create({
alignItems: 'center', alignItems: 'center',
}, },
heading: { heading: {
fontFamily: "sans-serif", //fontFamily: "sans-serif",
fontWeight:'bold', fontWeight:'bold',
marginLeft: 5, marginLeft: 5,
fontSize: SIZE.xxxl, fontSize: SIZE.xxxl,

View File

@@ -42,7 +42,7 @@ export const SearchInput = (props) => {
<TextInput <TextInput
ref={inputRef} ref={inputRef}
style={{ style={{
fontFamily: "sans-serif", //fontFamily: "sans-serif",
fontWeight:'bold', fontWeight:'bold',
color: colors.pri, color: colors.pri,
fontSize: SIZE.xl, fontSize: SIZE.xl,

View File

@@ -1,4 +1,5 @@
import React from 'react'; import React from 'react';
import { Platform } from 'react-native';
import {Text} from 'react-native'; import {Text} from 'react-native';
import {useTracked} from '../../provider'; import {useTracked} from '../../provider';
import {SIZE} from '../../utils/SizeUtils'; import {SIZE} from '../../utils/SizeUtils';
@@ -26,7 +27,6 @@ const Heading = ({color, size = SIZE.xl, style, ...restProps}) => {
{...restProps} {...restProps}
style={[ style={[
{ {
fontFamily: 'sans-serif',
fontSize: size || SIZE.xl, fontSize: size || SIZE.xl,
color: color || colors.heading, color: color || colors.heading,
fontWeight: 'bold', fontWeight: 'bold',

View File

@@ -643,7 +643,7 @@ export class VaultDialog extends Component {
<Paragraph <Paragraph
style={{ style={{
fontSize: SIZE.sm, fontSize: SIZE.sm,
fontFamily: "sans-serif", //fontFamily: "sans-serif",
color: colors.pri, color: colors.pri,
maxWidth: '90%', maxWidth: '90%',
marginLeft: 10, marginLeft: 10,

View File

@@ -8,7 +8,9 @@ import {defaultState} from './DefaultState';
export const reducer = (state, action) => { export const reducer = (state, action) => {
switch (action.type) { switch (action.type) {
case Actions.ALL: { case Actions.ALL: {
console.log(sortSettings.sortOrder,'SORT ORDER');
return { return {
...state, ...state,
notes: db.notes.group( notes: db.notes.group(
@@ -53,6 +55,7 @@ export const reducer = (state, action) => {
}; };
} }
case Actions.NOTES: case Actions.NOTES:
console.log(sortSettings.sortOrder,'SORT ORDER');
return { return {
...state, ...state,
notes: db.notes.group( notes: db.notes.group(

View File

@@ -37,7 +37,7 @@ export const getElevation = (elevation) => {
export const sortSettings = { export const sortSettings = {
sort: defaultState.settings.sort, sort: defaultState.settings.sort,
sortOrder: defaultState.settings.sortOrder, sortOrder: "desc",
}; };
export const SORT = { export const SORT = {

View File

@@ -60,7 +60,7 @@ export const EditorTitle = () => {
<TextInput <TextInput
defaultValue={title} defaultValue={title}
style={{ style={{
fontFamily: "sans-serif", //fontFamily: "sans-serif",
fontWeight:'bold', fontWeight:'bold',
fontSize: SIZE.xl, fontSize: SIZE.xl,
color: colors.heading, color: colors.heading,

View File

@@ -747,7 +747,7 @@ const SettingsAppearanceSection = () => {
: 'transparent', : 'transparent',
}} }}
textStyle={{ textStyle={{
fontFamily: "sans-serif", //fontFamily: "sans-serif",
fontSize: SIZE.sm, fontSize: SIZE.sm,
color: color:
settings.homepage === item.name settings.homepage === item.name