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
d7f659a4
Commit
d7f659a4
authored
Aug 10, 2021
by
YoonDongMin
Browse files
0810DM
parent
b8bc934a
Changes
3
Show whitespace changes
Inline
Side-by-side
MainScreen.js
View file @
d7f659a4
...
@@ -9,6 +9,7 @@ import DeptPage from './DeptPage';
...
@@ -9,6 +9,7 @@ import DeptPage from './DeptPage';
import
weekApi
from
'
./db/mainScreen.api
'
;
import
weekApi
from
'
./db/mainScreen.api
'
;
import
{
getDateStr
}
from
'
./utils/dateFunction
'
;
import
{
getDateStr
}
from
'
./utils/dateFunction
'
;
const
DetailItem
=
({
item
})
=>
{
const
DetailItem
=
({
item
})
=>
{
return
(
return
(
<>
<>
...
@@ -132,12 +133,12 @@ function MainScreen({ navigation }) {
...
@@ -132,12 +133,12 @@ function MainScreen({ navigation }) {
onClose
=
{()
=>
setOpen
(
!
open
)}
onClose
=
{()
=>
setOpen
(
!
open
)}
>
>
<
SpeedDial
.
Action
<
SpeedDial
.
Action
icon
=
{
{
name
:
'
add
'
,
color
:
'
#fff
'
}}
icon
=
{
<
FontAwesome
name
=
{
'
money
'
}
size
=
{
20
}
color
=
{
'
#fff
'
}
/>
}
title
=
"
부채
"
title
=
"
부채
"
onPress
=
{()
=>
navigation
.
navigate
(
'
DeptPage
'
)}
onPress
=
{()
=>
navigation
.
navigate
(
'
DeptPage
'
)}
/
>
/
>
<
SpeedDial
.
Action
<
SpeedDial
.
Action
icon
=
{{
name
:
'
add
'
,
color
:
'
#fff
'
}}
icon
=
{{
name
:
'
note
'
,
color
:
'
#fff
'
}}
title
=
"
메모
"
title
=
"
메모
"
onPress
=
{()
=>
navigation
.
navigate
(
'
MemoPage
'
)}
onPress
=
{()
=>
navigation
.
navigate
(
'
MemoPage
'
)}
/
>
/
>
...
...
screens/DeptDetails.js
View file @
d7f659a4
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
{
StyleSheet
,
View
,
TouchableWithoutFeedback
,
Keyboard
}
from
'
react-native
'
;
import
{
StyleSheet
,
View
,
TouchableWithoutFeedback
,
Keyboard
,
LogBox
}
from
'
react-native
'
;
import
InputBox
from
'
../components/InputBox
'
;
import
InputBox
from
'
../components/InputBox
'
;
import
StyledButton
from
'
../components/StyledButton
'
;
import
StyledButton
from
'
../components/StyledButton
'
;
import
DatePicker
from
'
../components/DatePicker.js
'
;
import
DatePicker
from
'
../components/DatePicker.js
'
;
import
deptApi
from
'
../db/deptPage.api
'
;
import
deptApi
from
'
../db/deptPage.api
'
;
import
{
getDateStr
}
from
'
../utils/dateFunction
'
;
import
{
getDateStr
}
from
'
../utils/dateFunction
'
;
function
DeptDetails
({
route
,
navigation
})
{
function
DeptDetails
({
route
,
navigation
})
{
const
{
item
,
loadLoan
}
=
route
.
params
const
{
item
,
loadLoan
}
=
route
.
params
const
getDates
=
()
=>
{
const
getDates
=
()
=>
{
...
@@ -16,6 +17,7 @@ function DeptDetails({ route, navigation }) {
...
@@ -16,6 +17,7 @@ function DeptDetails({ route, navigation }) {
const
[
message
,
setMessage
]
=
useState
(
''
)
const
[
message
,
setMessage
]
=
useState
(
''
)
const
[
money
,
setMoney
]
=
useState
(
''
)
const
[
money
,
setMoney
]
=
useState
(
''
)
const
[
repayment
,
setRepayment
]
=
useState
(
''
)
const
[
repayment
,
setRepayment
]
=
useState
(
''
)
LogBox
.
ignoreLogs
([
'
Non-serializable values were found in the navigation state
'
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
setDate
(
String
(
item
.
date
))
setDate
(
String
(
item
.
date
))
...
...
screens/MemoDetails.js
View file @
d7f659a4
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
{
StyleSheet
,
View
,
TouchableWithoutFeedback
,
Keyboard
}
from
'
react-native
'
;
import
{
StyleSheet
,
View
,
TouchableWithoutFeedback
,
Keyboard
,
LogBox
}
from
'
react-native
'
;
import
InputBox
from
'
../components/InputBox
'
;
import
InputBox
from
'
../components/InputBox
'
;
import
StyledButton
from
'
../components/StyledButton
'
;
import
StyledButton
from
'
../components/StyledButton
'
;
import
DatePicker
from
'
../components/DatePicker.js
'
;
import
DatePicker
from
'
../components/DatePicker.js
'
;
import
memoApi
from
'
../db/memoPage.api
'
;
import
memoApi
from
'
../db/memoPage.api
'
;
import
{
getDateStr
}
from
'
../utils/dateFunction
'
;
import
{
getDateStr
}
from
'
../utils/dateFunction
'
;
function
MemoDetails
({
route
,
navigation
})
{
function
MemoDetails
({
route
,
navigation
})
{
const
{
item
,
loadMemos
}
=
route
.
params
const
{
item
,
loadMemos
}
=
route
.
params
const
getDates
=
()
=>
{
const
getDates
=
()
=>
{
...
@@ -19,7 +21,7 @@ function MemoDetails({ route, navigation }) {
...
@@ -19,7 +21,7 @@ function MemoDetails({ route, navigation }) {
loadMemos
()
loadMemos
()
navigation
.
navigate
(
'
MemoPage
'
)
navigation
.
navigate
(
'
MemoPage
'
)
}
}
LogBox
.
ignoreLogs
([
'
Non-serializable values were found in the navigation state
'
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
setDate
(
String
(
item
.
date
))
setDate
(
String
(
item
.
date
))
setMessage
(
item
.
message
)
setMessage
(
item
.
message
)
...
...
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