mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 20:49:16 +00:00
padding member list
This commit is contained in:
parent
0e09d981ca
commit
fe850ea2e2
@ -1,7 +1,7 @@
|
|||||||
import { useEffect, useState, useRef, useContext } from 'react';
|
import { useEffect, useState, useRef, useContext } from 'react';
|
||||||
import SQLite from "react-native-sqlite-storage";
|
import SQLite from "react-native-sqlite-storage";
|
||||||
|
|
||||||
const DATABAG_DB = 'databag_v040.db';
|
const DATABAG_DB = 'databag_v041.db';
|
||||||
|
|
||||||
export function useStoreContext() {
|
export function useStoreContext() {
|
||||||
const [state, setState] = useState({});
|
const [state, setState] = useState({});
|
||||||
|
@ -30,8 +30,10 @@ export function AddTopic() {
|
|||||||
|
|
||||||
const sendMessage = async () => {
|
const sendMessage = async () => {
|
||||||
try {
|
try {
|
||||||
message.current.blur();
|
if (state.message || state.assets.length > 0) {
|
||||||
await actions.addTopic();
|
message.current.blur();
|
||||||
|
await actions.addTopic();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
@ -11,6 +11,7 @@ export const styles = StyleSheet.create({
|
|||||||
borderBottomWidth: 1,
|
borderBottomWidth: 1,
|
||||||
borderColor: Colors.itemDivider,
|
borderColor: Colors.itemDivider,
|
||||||
paddingLeft: 8,
|
paddingLeft: 8,
|
||||||
|
paddingRight: 8,
|
||||||
},
|
},
|
||||||
detail: {
|
detail: {
|
||||||
paddingLeft: 12,
|
paddingLeft: 12,
|
||||||
|
Loading…
Reference in New Issue
Block a user