@sqliteai/todoapp 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/hooks/useCategories.js
CHANGED
|
@@ -69,8 +69,8 @@ const useCategories = () => {
|
|
|
69
69
|
await db.execute(`SELECT cloudsync_init('tags');`);
|
|
70
70
|
await db.execute(`SELECT cloudsync_init('tasks_tags');`);
|
|
71
71
|
|
|
72
|
-
await db.execute('INSERT OR IGNORE INTO tags (uuid, name) VALUES (?, ?)', [
|
|
73
|
-
await db.execute('INSERT OR IGNORE INTO tags (uuid, name) VALUES (?, ?)', [
|
|
72
|
+
await db.execute('INSERT OR IGNORE INTO tags (uuid, name) VALUES (?, ?)', ['work', 'Work'])
|
|
73
|
+
await db.execute('INSERT OR IGNORE INTO tags (uuid, name) VALUES (?, ?)', ['personal', 'Personal'])
|
|
74
74
|
|
|
75
75
|
if ((ANDROID_CONNECTION_STRING || CONNECTION_STRING) && API_TOKEN) {
|
|
76
76
|
await db.execute(`SELECT cloudsync_network_init('${Platform.OS == 'android' && ANDROID_CONNECTION_STRING ? ANDROID_CONNECTION_STRING : CONNECTION_STRING}');`);
|
package/package.json
CHANGED
|
@@ -284,6 +284,9 @@ const withCloudSync = (config) => {
|
|
|
284
284
|
if (!fonts.includes('FontAwesome.ttf')) {
|
|
285
285
|
fonts.push('FontAwesome.ttf');
|
|
286
286
|
}
|
|
287
|
+
if (!fonts.includes('MaterialDesignIcons.ttf')) {
|
|
288
|
+
fonts.push('MaterialDesignIcons.ttf');
|
|
289
|
+
}
|
|
287
290
|
config.modResults.UIAppFonts = fonts;
|
|
288
291
|
return config;
|
|
289
292
|
});
|
package/screens/Categories.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { ScrollView, StyleSheet, View, Alert } from "react-native";
|
|
3
3
|
import { Avatar, Card, Text, Modal, Portal, Button, TextInput } from "react-native-paper";
|
|
4
|
-
import Icon from '@react-native-vector-icons/material-design-icons';
|
|
5
4
|
import { useFocusEffect } from '@react-navigation/native';
|
|
6
5
|
import useCategories from "../hooks/useCategories";
|
|
7
6
|
import { useSyncContext } from "../components/SyncContext";
|
|
@@ -127,7 +126,7 @@ const Categories = ({ navigation }) => {
|
|
|
127
126
|
>
|
|
128
127
|
<Card.Title
|
|
129
128
|
left={(props) => (
|
|
130
|
-
<Icon
|
|
129
|
+
<Avatar.Icon
|
|
131
130
|
{...props}
|
|
132
131
|
icon="inbox-outline"
|
|
133
132
|
color={styles.icon.color}
|
|
@@ -151,7 +150,7 @@ const Categories = ({ navigation }) => {
|
|
|
151
150
|
>
|
|
152
151
|
<Card.Title
|
|
153
152
|
left={(props) => (
|
|
154
|
-
<Icon
|
|
153
|
+
<Avatar.Icon
|
|
155
154
|
{...props}
|
|
156
155
|
icon="tag-outline"
|
|
157
156
|
color={styles.icon.color}
|
|
@@ -169,7 +168,7 @@ const Categories = ({ navigation }) => {
|
|
|
169
168
|
<Card style={styles.addCard} onPress={showModal} mode="contained">
|
|
170
169
|
<Card.Title
|
|
171
170
|
left={(props) => (
|
|
172
|
-
<Icon
|
|
171
|
+
<Avatar.Icon
|
|
173
172
|
{...props}
|
|
174
173
|
icon="plus-circle-outline"
|
|
175
174
|
color={styles.addIcon.color}
|