mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +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 SQLite from "react-native-sqlite-storage";
|
||||
|
||||
const DATABAG_DB = 'databag_v040.db';
|
||||
const DATABAG_DB = 'databag_v041.db';
|
||||
|
||||
export function useStoreContext() {
|
||||
const [state, setState] = useState({});
|
||||
|
@ -30,8 +30,10 @@ export function AddTopic() {
|
||||
|
||||
const sendMessage = async () => {
|
||||
try {
|
||||
message.current.blur();
|
||||
await actions.addTopic();
|
||||
if (state.message || state.assets.length > 0) {
|
||||
message.current.blur();
|
||||
await actions.addTopic();
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
console.log(err);
|
||||
|
@ -11,6 +11,7 @@ export const styles = StyleSheet.create({
|
||||
borderBottomWidth: 1,
|
||||
borderColor: Colors.itemDivider,
|
||||
paddingLeft: 8,
|
||||
paddingRight: 8,
|
||||
},
|
||||
detail: {
|
||||
paddingLeft: 12,
|
||||
|
Loading…
Reference in New Issue
Block a user