Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
rich-maker
Commits
b8bc934a
Commit
b8bc934a
authored
Aug 08, 2021
by
Choi Ga Young
Browse files
병합 후 수정
parent
a390f249
Changes
10
Show whitespace changes
Inline
Side-by-side
ChartM.js
View file @
b8bc934a
...
@@ -65,13 +65,13 @@ const ChartM = ({
...
@@ -65,13 +65,13 @@ const ChartM = ({
}
}
return
(
return
(
<>
<>
<
View
style
=
{{
flexDirection
:
'
row
'
}}
>
<
View
style
=
{{
flexDirection
:
'
row
'
,
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
}}
>
<
Button
icon
=
{
<
Button
icon
=
{
<
Ionicons
name
=
'
chevron-back-sharp
'
onPress
=
{
prevBtn
}
size
=
{
15
}
color
=
'
black
'
/>
<
Ionicons
name
=
'
chevron-back-sharp
'
onPress
=
{
prevBtn
}
size
=
{
20
}
color
=
'
black
'
/>
}
type
=
'
clear
'
/>
}
type
=
'
clear
'
/>
<
Text
>
{
year
}.{
month
+
1
}
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'
GowunDodum-Regular
'
,
fontSize
:
20
}}
>
{
year
}.{
month
+
1
}
<
/Text
>
<
Button
icon
=
{
<
Button
icon
=
{
<
Ionicons
name
=
'
chevron-forward-sharp
'
onPress
=
{
nextBtn
}
size
=
{
15
}
color
=
'
black
'
/>
<
Ionicons
name
=
'
chevron-forward-sharp
'
onPress
=
{
nextBtn
}
size
=
{
20
}
color
=
'
black
'
/>
}
type
=
'
clear
'
/>
}
type
=
'
clear
'
/>
<
/View
>
<
/View
>
<
View
>
<
View
>
...
...
ChartY.js
View file @
b8bc934a
...
@@ -44,13 +44,13 @@ const ChartY = ({ resDataY, year, setYear }) => {
...
@@ -44,13 +44,13 @@ const ChartY = ({ resDataY, year, setYear }) => {
return
(
return
(
<>
<>
<
View
style
=
{{
flexDirection
:
'
row
'
}}
>
<
View
style
=
{{
flexDirection
:
'
row
'
,
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
}}
>
<
Button
icon
=
{
<
Button
icon
=
{
<
Ionicons
name
=
'
chevron-back-sharp
'
onPress
=
{
prevBtn
}
size
=
{
15
}
color
=
'
black
'
/>
<
Ionicons
name
=
'
chevron-back-sharp
'
onPress
=
{
prevBtn
}
size
=
{
20
}
color
=
'
black
'
/>
}
type
=
'
clear
'
/>
}
type
=
'
clear
'
/>
<
Text
style
=
{{
fontFamily
:
'
GowunDodum-Regular
'
}}
>
{
year
}
년
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'
GowunDodum-Regular
'
,
fontSize
:
20
}}
>
{
year
}
년
<
/Text
>
<
Button
icon
=
{
<
Button
icon
=
{
<
Ionicons
name
=
'
chevron-forward-sharp
'
onPress
=
{
nextBtn
}
size
=
{
15
}
color
=
'
black
'
/>
<
Ionicons
name
=
'
chevron-forward-sharp
'
onPress
=
{
nextBtn
}
size
=
{
20
}
color
=
'
black
'
/>
}
type
=
'
clear
'
/>
}
type
=
'
clear
'
/>
<
/View
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'
row
'
,
justifyContent
:
"
space-around
"
}}
>
<
View
style
=
{{
flexDirection
:
'
row
'
,
justifyContent
:
"
space-around
"
}}
>
...
...
MainScreen.js
View file @
b8bc934a
...
@@ -18,7 +18,7 @@ const DetailItem = ({ item }) => {
...
@@ -18,7 +18,7 @@ const DetailItem = ({ item }) => {
}}
>
}}
>
<
Text
style
=
{[
style
.
itemText
,
item
.
type
===
1
?
style
.
inputColor
:
style
.
outputColor
]}
>
{
item
.
category
}
<
/Text
>
<
Text
style
=
{[
style
.
itemText
,
item
.
type
===
1
?
style
.
inputColor
:
style
.
outputColor
]}
>
{
item
.
category
}
<
/Text
>
<
Text
style
=
{[
style
.
itemTextNum
,
style
.
Font
]}
>
{
item
.
contents
}
<
/Text
>
<
Text
style
=
{[
style
.
itemTextNum
,
style
.
Font
]}
>
{
item
.
contents
}
<
/Text
>
<
Text
style
=
{[
style
.
itemTextNum
,
style
.
Font
]}
>
{
item
.
price
}
원
<
/Text
>
<
Text
style
=
{[
style
.
itemTextNum
,
style
.
Font
]}
>
{
(
item
.
price
).
toLocaleString
().
replace
(
/
\B(?=(\d{3})
+
(?!\d))
/g
,
"
,
"
)
}
원
<
/Text
>
<
/View
>
<
/View
>
<
/
>
<
/
>
);
);
...
@@ -28,7 +28,7 @@ const AssetItem = ({ item }) => {
...
@@ -28,7 +28,7 @@ const AssetItem = ({ item }) => {
return
(
return
(
<
View
style
=
{{
flexDirection
:
"
row
"
,
width
:
180
}}
>
<
View
style
=
{{
flexDirection
:
"
row
"
,
width
:
180
}}
>
<
Text
style
=
{[
style
.
Font
,
{
width
:
"
40%
"
,
textAlign
:
'
left
'
}]}
>
{
item
.
name
}
<
/Text
>
<
Text
style
=
{[
style
.
Font
,
{
width
:
"
40%
"
,
textAlign
:
'
left
'
}]}
>
{
item
.
name
}
<
/Text
>
<
Text
style
=
{[
style
.
Font
,
{
width
:
"
60%
"
,
textAlign
:
'
right
'
}]}
>
{
item
.
price
}
원
<
/Text
>
<
Text
style
=
{[
style
.
Font
,
{
width
:
"
60%
"
,
textAlign
:
'
right
'
}]}
>
{
(
item
.
price
).
toLocaleString
().
replace
(
/
\B(?=(\d{3})
+
(?!\d))
/g
,
"
,
"
)
}
원
<
/Text
>
<
/View
>
<
/View
>
);
);
};
};
...
@@ -111,7 +111,7 @@ function MainScreen({ navigation }) {
...
@@ -111,7 +111,7 @@ function MainScreen({ navigation }) {
<
/View
>
<
/View
>
<
View
style
=
{
style
.
Contents
}
>
<
View
style
=
{
style
.
Contents
}
>
<
Text
style
=
{[
style
.
Font
,
{
fontWeight
:
'
bold
'
}]}
>
총
자산
<
/Text
>
<
Text
style
=
{[
style
.
Font
,
{
fontWeight
:
'
bold
'
}]}
>
총
자산
<
/Text
>
<
Text
style
=
{
style
.
totalMoney
}
><
FontAwesome
name
=
"
won
"
style
=
{
style
.
totalMoney
}
/> {totalMoney}</
Text
>
<
Text
style
=
{
style
.
totalMoney
}
><
FontAwesome
name
=
"
won
"
style
=
{
style
.
totalMoney
}
/> {
(
totalMoney
)
.toLocaleString
()
.replace
(
/
\
B
(?
=
(
\
d
{
3
})
+
(?
!
\
d
))
/
g
,
"
,
"
)
}
<
/Text
>
<
View
style
=
{{
marginTop
:
5
}}
>
<
View
style
=
{{
marginTop
:
5
}}
>
{
totalAssetsMoney
.
length
!==
0
&&
totalAssetsMoney
.
map
((
item
,
index
)
=>
<
AssetItem
item
=
{
item
}
key
=
{
index
}
/>
)
}
{
totalAssetsMoney
.
length
!==
0
&&
totalAssetsMoney
.
map
((
item
,
index
)
=>
<
AssetItem
item
=
{
item
}
key
=
{
index
}
/>
)
}
<
/View
>
<
/View
>
...
...
PostMoney.js
View file @
b8bc934a
...
@@ -55,16 +55,6 @@ const PostMoney = ({ navigation }) => {
...
@@ -55,16 +55,6 @@ const PostMoney = ({ navigation }) => {
setSelected_subcat
(
INIT_SUBCATEGORY
)
setSelected_subcat
(
INIT_SUBCATEGORY
)
}
}
console
.
log
(
'
type:
'
,
selectedIndex
,
'
| date:
'
,
date
,
'
| contents:
'
,
contents
,
'
| price:
'
,
price
,
'
| selected_asset_type:
'
,
selected_asset_type
.
id
,
'
| 이동일 때
'
,
(
selectedIndex
===
2
?
{
[
'
selected_deposit_asset_type
'
]:
selected_deposit_asset_type
.
id
}
:
null
),
'
| selected_cat:
'
,
selected_cat
.
id
,
'
| selected_subcat:
'
,
selected_subcat
.
id
)
const
insertData
=
async
()
=>
{
const
insertData
=
async
()
=>
{
try
{
try
{
let
type
=
selectedIndex
+
1
;
let
type
=
selectedIndex
+
1
;
...
...
components/Calendar.js
View file @
b8bc934a
...
@@ -12,8 +12,8 @@ const DateItem = ({ dateitem, textColor, onPress, flatListHeight }) => {
...
@@ -12,8 +12,8 @@ const DateItem = ({ dateitem, textColor, onPress, flatListHeight }) => {
{
{
dateitem
.
type
&&
dateitem
.
type
&&
<
View
>
<
View
>
<
Text
style
=
{{
color
:
'
#1E90FF
'
}}
>
{
dateitem
.
type
.
input
?
dateitem
.
type
.
input
:
null
}
<
/Text
>
<
Text
style
=
{{
color
:
'
#1E90FF
'
}}
>
{
dateitem
.
type
.
input
?
(
dateitem
.
type
.
input
).
toLocaleString
().
replace
(
/
\B(?=(\d{3})
+
(?!\d))
/g
,
"
,
"
)
:
null
}
<
/Text
>
<
Text
style
=
{{
color
:
'
#DC143C
'
}}
>
{
dateitem
.
type
.
output
?
dateitem
.
type
.
output
:
null
}
<
/Text
>
<
Text
style
=
{{
color
:
'
#DC143C
'
}}
>
{
dateitem
.
type
.
output
?
(
dateitem
.
type
.
output
).
toLocaleString
().
replace
(
/
\B(?=(\d{3})
+
(?!\d))
/g
,
"
,
"
)
:
null
}
<
/Text
>
<
/View
>
<
/View
>
}
}
<
/TouchableOpacity
>
<
/TouchableOpacity
>
...
...
components/todoItem.js
View file @
b8bc934a
...
@@ -8,12 +8,9 @@ function TodoItem({ item, onDeleteHandle }) {
...
@@ -8,12 +8,9 @@ function TodoItem({ item, onDeleteHandle }) {
<
Ionicons
name
=
'
trash-outline
'
size
=
{
15
}
color
=
'
#333
'
onPress
=
{
onDeleteHandle
}
/
>
<
Ionicons
name
=
'
trash-outline
'
size
=
{
15
}
color
=
'
#333
'
onPress
=
{
onDeleteHandle
}
/
>
<
Text
style
=
{
styles
.
itemText
}
>
{
item
.
date
}
<
/Text
>
<
Text
style
=
{
styles
.
itemText
}
>
{
item
.
date
}
<
/Text
>
<
Text
style
=
{
styles
.
itemText
}
>
{
item
.
message
}
<
/Text
>
<
Text
style
=
{
styles
.
itemText
}
>
{
item
.
message
}
<
/Text
>
<
Text
style
=
{
styles
.
itemText
}
>
{
item
.
money
}
<
/Text
>
{
item
.
money
?
<
Text
style
=
{
styles
.
itemText
}
>
{(
item
.
repayment
).
toLocaleString
().
replace
(
/
\B(?=(\d{3})
+
(?!\d))
/g
,
"
,
"
)}
/ {
(
item.money
)
.toLocaleString
()
.replace
(
/
\
B
(?
=
(
\
d
{
3
})
+
(?
!
\
d
))
/
g
,
"
,
"
)}
<
/Text> : null
}
<
Text
style
=
{
styles
.
itemText
}
>
{
item
.
remained_money
}
<
/Text
>
<
/View
>
<
/View
>
)
)
}
}
const
styles
=
StyleSheet
.
create
({
const
styles
=
StyleSheet
.
create
({
...
@@ -30,6 +27,7 @@ const styles = StyleSheet.create({
...
@@ -30,6 +27,7 @@ const styles = StyleSheet.create({
itemText
:
{
itemText
:
{
fontFamily
:
'
GowunDodum-Regular
'
,
fontFamily
:
'
GowunDodum-Regular
'
,
marginLeft
:
10
,
marginLeft
:
10
,
fontSize
:
15
}
}
})
})
...
...
db/deptPage.api.js
View file @
b8bc934a
...
@@ -7,21 +7,17 @@ enablePromise(true);
...
@@ -7,21 +7,17 @@ enablePromise(true);
const
insertDept
=
async
(
deptData
)
=>
{
const
insertDept
=
async
(
deptData
)
=>
{
const
db
=
await
getDb
();
const
db
=
await
getDb
();
const
{
date
,
loan
,
message
,
money
,
re
mained_money
}
=
deptData
const
{
date
,
loan
,
message
,
money
,
re
payment
}
=
deptData
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
db
.
transaction
((
tx
)
=>
{
db
.
transaction
((
tx
)
=>
{
tx
.
executeSql
(
'
INSERT INTO dept (repayment_date, loan, loan_name, principal, repayment) VALUES (?,?,?,?,?);
'
,
tx
.
executeSql
(
'
INSERT INTO dept (repayment_date, loan, loan_name, principal, repayment) VALUES (?,?,?,?,?);
'
,
[
date
,
loan
,
message
,
money
,
re
mained_money
],
[
date
,
loan
,
message
,
money
,
re
payment
],
(
error
)
=>
console
.
log
(
error
))
(
error
)
=>
console
.
log
(
error
))
resolve
(
'
데이터 삽입 완료
'
);
resolve
(
'
데이터 삽입 완료
'
);
})
})
})
})
};
};
const
selectLoan
=
async
(
title
)
=>
{
const
selectLoan
=
async
(
title
)
=>
{
const
db
=
await
getDb
();
const
db
=
await
getDb
();
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
@@ -35,7 +31,7 @@ const selectLoan = async (title) => {
...
@@ -35,7 +31,7 @@ const selectLoan = async (title) => {
const
tempRepayment
=
results
.
rows
.
item
(
i
).
repayment
;
const
tempRepayment
=
results
.
rows
.
item
(
i
).
repayment
;
const
tempRe_date
=
results
.
rows
.
item
(
i
).
repayment_date
;
const
tempRe_date
=
results
.
rows
.
item
(
i
).
repayment_date
;
const
tempLoan_name
=
results
.
rows
.
item
(
i
).
loan_name
;
const
tempLoan_name
=
results
.
rows
.
item
(
i
).
loan_name
;
temp
.
push
({
id
:
tempId
,
date
:
tempRe_date
,
loan
:
tempLoan
,
message
:
tempLoan_name
,
money
:
tempPrincipal
,
re
mained_money
:
tempRepayment
});
temp
.
push
({
id
:
tempId
,
date
:
tempRe_date
,
loan
:
tempLoan
,
message
:
tempLoan_name
,
money
:
tempPrincipal
,
re
payment
:
tempRepayment
});
}
}
resolve
(
temp
);
resolve
(
temp
);
...
@@ -56,12 +52,12 @@ const deleteDept = async (id) => {
...
@@ -56,12 +52,12 @@ const deleteDept = async (id) => {
const
updateDept
=
async
(
deptData
,
id
)
=>
{
const
updateDept
=
async
(
deptData
,
id
)
=>
{
const
db
=
await
getDb
();
const
db
=
await
getDb
();
const
{
date
,
message
,
money
,
re
mained_money
}
=
deptData
const
{
date
,
message
,
money
,
re
payment
}
=
deptData
console
.
log
(
date
,
message
,
id
)
console
.
log
(
date
,
message
,
id
)
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
db
.
transaction
((
tx
)
=>
{
db
.
transaction
((
tx
)
=>
{
tx
.
executeSql
(
`UPDATE dept set repayment_date =?, loan_name=?, principal=?, repayment=? where dept_id =
${
id
}
;`
,
tx
.
executeSql
(
`UPDATE dept set repayment_date =?, loan_name=?, principal=?, repayment=? where dept_id =
${
id
}
;`
,
[
date
,
message
,
money
,
re
mained_money
],
[
date
,
message
,
money
,
re
payment
],
(
error
)
=>
console
.
log
(
error
))
(
error
)
=>
console
.
log
(
error
))
resolve
(
'
데이터 변경 완료
'
);
resolve
(
'
데이터 변경 완료
'
);
})
})
...
...
screens/DeptDetails.js
View file @
b8bc934a
...
@@ -15,17 +15,17 @@ function DeptDetails({ route, navigation }) {
...
@@ -15,17 +15,17 @@ function DeptDetails({ route, navigation }) {
const
[
date
,
setDate
]
=
useState
(
getDates
())
const
[
date
,
setDate
]
=
useState
(
getDates
())
const
[
message
,
setMessage
]
=
useState
(
''
)
const
[
message
,
setMessage
]
=
useState
(
''
)
const
[
money
,
setMoney
]
=
useState
(
''
)
const
[
money
,
setMoney
]
=
useState
(
''
)
const
[
re
mained_money
,
setRemained_money
]
=
useState
(
''
)
const
[
re
payment
,
setRepayment
]
=
useState
(
''
)
useEffect
(()
=>
{
useEffect
(()
=>
{
setDate
(
String
(
item
.
date
))
setDate
(
String
(
item
.
date
))
setMessage
(
item
.
message
)
setMessage
(
item
.
message
)
setMoney
(
String
(
item
.
money
))
setMoney
(
String
(
item
.
money
))
setRe
mained_money
(
String
(
item
.
re
mained_money
))
setRe
payment
(
String
(
item
.
re
payment
))
},
[])
},
[])
const
onUpdateHandle
=
async
()
=>
{
const
onUpdateHandle
=
async
()
=>
{
await
deptApi
.
updateDept
({
date
,
message
,
money
,
re
mained_money
},
item
.
id
)
await
deptApi
.
updateDept
({
date
,
message
,
money
,
re
payment
},
item
.
id
)
loadLoan
()
loadLoan
()
navigation
.
navigate
(
'
DeptPage
'
)
navigation
.
navigate
(
'
DeptPage
'
)
}
}
...
@@ -48,17 +48,17 @@ function DeptDetails({ route, navigation }) {
...
@@ -48,17 +48,17 @@ function DeptDetails({ route, navigation }) {
}
}
/
>
/
>
<
InputBox
<
InputBox
inputTitle
=
"
금
액
"
inputTitle
=
"
원
금
"
value
=
{
money
}
value
=
{
money
}
onChangeText
=
{
onChangeText
=
{
(
money
)
=>
setMoney
(
money
)
(
money
)
=>
setMoney
(
money
)
}
}
/
>
/
>
<
InputBox
<
InputBox
inputTitle
=
"
남
은 금액
"
inputTitle
=
"
갚
은 금액
"
value
=
{
re
mained_money
}
value
=
{
re
payment
}
onChangeText
=
{
onChangeText
=
{
(
re
mained_money
)
=>
setRemained_money
(
remained_money
)
(
re
payment
)
=>
setRepayment
(
repayment
)
}
}
/
>
/
>
<
/View
>
<
/View
>
...
...
screens/DeptForm.js
View file @
b8bc934a
...
@@ -15,15 +15,10 @@ const ReviewSchema = yup.object({
...
@@ -15,15 +15,10 @@ const ReviewSchema = yup.object({
.
min
(
2
),
.
min
(
2
),
money
:
yup
.
number
()
money
:
yup
.
number
()
.
required
(),
.
required
(),
re
mained_money
:
yup
.
number
()
re
payment
:
yup
.
number
()
.
required
()
.
required
()
})
})
const
getDates
=
()
=>
{
const
date
=
new
Date
();
return
(
getDateStr
(
date
))
}
function
DeptForm
({
addInfo
})
{
function
DeptForm
({
addInfo
})
{
return
(
return
(
<
TouchableWithoutFeedback
onPress
=
{()
=>
{
<
TouchableWithoutFeedback
onPress
=
{()
=>
{
...
@@ -31,7 +26,7 @@ function DeptForm({ addInfo }) {
...
@@ -31,7 +26,7 @@ function DeptForm({ addInfo }) {
}}
>
}}
>
<
View
style
=
{
globalStyles
.
container
}
>
<
View
style
=
{
globalStyles
.
container
}
>
<
Formik
<
Formik
initialValues
=
{{
date
:
''
,
message
:
''
,
money
:
''
,
re
mained_money
:
''
}}
initialValues
=
{{
date
:
getDateStr
()
,
message
:
''
,
money
:
''
,
re
payment
:
''
}}
validationSchema
=
{
ReviewSchema
}
validationSchema
=
{
ReviewSchema
}
onSubmit
=
{(
values
)
=>
{
onSubmit
=
{(
values
)
=>
{
addInfo
(
values
);
addInfo
(
values
);
...
@@ -41,7 +36,7 @@ function DeptForm({ addInfo }) {
...
@@ -41,7 +36,7 @@ function DeptForm({ addInfo }) {
<
View
>
<
View
>
<
DatePicker
<
DatePicker
inputTitle
=
'
날짜
'
inputTitle
=
'
날짜
'
date
=
{
values
.
date
||
getDates
()
}
date
=
{
values
.
date
}
setDate
=
{
handleChange
(
'
date
'
)}
setDate
=
{
handleChange
(
'
date
'
)}
/
>
/
>
<
InputBox
<
InputBox
...
@@ -50,15 +45,15 @@ function DeptForm({ addInfo }) {
...
@@ -50,15 +45,15 @@ function DeptForm({ addInfo }) {
value
=
{
values
.
message
}
value
=
{
values
.
message
}
/
>
/
>
<
InputBox
<
InputBox
inputTitle
=
"
금
액
"
inputTitle
=
"
원
금
"
onChangeText
=
{
handleChange
(
'
money
'
)}
onChangeText
=
{
handleChange
(
'
money
'
)}
value
=
{
values
.
money
}
value
=
{
values
.
money
}
keyboardType
=
"
numeric
"
keyboardType
=
"
numeric
"
/>
/>
<
InputBox
<
InputBox
inputTitle
=
"
남은
금액
"
inputTitle
=
"
갚은
금액
"
onChangeText
=
{
handleChange
(
'
re
mained_money
'
)}
onChangeText
=
{
handleChange
(
'
re
payment
'
)}
value
=
{
values
.
re
mained_money
}
value
=
{
values
.
re
payment
}
keyboardType
=
"
numeric
"
keyboardType
=
"
numeric
"
/>
/>
...
...
screens/MemoForm.js
View file @
b8bc934a
...
@@ -16,11 +16,6 @@ const ReviewSchema = yup.object({
...
@@ -16,11 +16,6 @@ const ReviewSchema = yup.object({
})
})
const
getDates
=
()
=>
{
const
date
=
new
Date
();
return
(
getDateStr
(
date
))
}
function
MemoForm
({
addInfo
})
{
function
MemoForm
({
addInfo
})
{
return
(
return
(
<
TouchableWithoutFeedback
onPress
=
{()
=>
{
<
TouchableWithoutFeedback
onPress
=
{()
=>
{
...
@@ -28,7 +23,7 @@ function MemoForm({ addInfo }) {
...
@@ -28,7 +23,7 @@ function MemoForm({ addInfo }) {
}}
>
}}
>
<
View
style
=
{
globalStyles
.
container
}
>
<
View
style
=
{
globalStyles
.
container
}
>
<
Formik
<
Formik
initialValues
=
{{
date
:
''
,
message
:
''
}}
initialValues
=
{{
date
:
getDateStr
()
,
message
:
''
}}
validationSchema
=
{
ReviewSchema
}
validationSchema
=
{
ReviewSchema
}
onSubmit
=
{(
values
)
=>
{
onSubmit
=
{(
values
)
=>
{
addInfo
(
values
);
addInfo
(
values
);
...
@@ -39,7 +34,7 @@ function MemoForm({ addInfo }) {
...
@@ -39,7 +34,7 @@ function MemoForm({ addInfo }) {
<
View
>
<
View
>
<
DatePicker
<
DatePicker
inputTitle
=
'
날짜
'
inputTitle
=
'
날짜
'
date
=
{
values
.
date
||
getDates
()
}
date
=
{
values
.
date
}
setDate
=
{
handleChange
(
'
date
'
)}
setDate
=
{
handleChange
(
'
date
'
)}
/
>
/
>
<
InputBox
<
InputBox
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment