Commit 93a47926 authored by Soo Hyun Kim's avatar Soo Hyun Kim
Browse files

0809 메인 페이지

parent 7d50384d
...@@ -110,7 +110,6 @@ function MainScreen({ navigation }) { ...@@ -110,7 +110,6 @@ function MainScreen({ navigation }) {
const getWeeklyData = async (start, end) => { const getWeeklyData = async (start, end) => {
if (getDateStr(start) !== getDateStr(startingDate)) { if (getDateStr(start) !== getDateStr(startingDate)) {
console.log('weekchanged~~~~~~~~~~~~', start, end)
const { data, input, output } = await weekApi.getWeeklyData(start, end) const { data, input, output } = await weekApi.getWeeklyData(start, end)
setStartingDate(start) setStartingDate(start)
setWeekMoney({ input: input, output, output }) setWeekMoney({ input: input, output, output })
......
...@@ -44,7 +44,6 @@ const getWeeklyData = async (start, end) => { ...@@ -44,7 +44,6 @@ const getWeeklyData = async (start, end) => {
} }
} }
}) })
console.log('실행실행실행')
resolve({ data: temp, input: input, output: output }) resolve({ data: temp, input: input, output: output })
}) })
} }
...@@ -53,7 +52,6 @@ const getData = async (findDate) => { ...@@ -53,7 +52,6 @@ const getData = async (findDate) => {
const db = await getDb(); const db = await getDb();
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
db.transaction(async (tx) => { db.transaction(async (tx) => {
console.log("get single data");
const [txn, results] = await tx.executeSql(` const [txn, results] = await tx.executeSql(`
SELECT money.type_id, category_name, assets_name, contents, price SELECT money.type_id, category_name, assets_name, contents, price
FROM money FROM money
...@@ -104,7 +102,6 @@ const getData = async (findDate) => { ...@@ -104,7 +102,6 @@ const getData = async (findDate) => {
const getTotalData = async () => { const getTotalData = async () => {
const db = await getDb(); const db = await getDb();
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
console.log("get total Money");
let total = 0; let total = 0;
const temp = []; const temp = [];
await db.transaction(async (tx) => { await db.transaction(async (tx) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment