Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김서영
/
searchGuide
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
bluejoyq
2019-12-09 23:13:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
32f2a1ca3f6d0f488e4a6a8091ba3b6ea5ce9b35
32f2a1ca
1 parent
b3458e1f
rate line add
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
19 deletions
searchGuide/components/RateLine/RateLine.js
searchGuide/components/RateLine/RateLine.js
View file @
32f2a1c
...
...
@@ -4,8 +4,6 @@ import { View,StyleSheet } from 'react-native';
import
{
connect
}
from
'react-redux'
;
import
{
load
}
from
'../../reducers/search'
;
import
PromptSearchRate
from
'../PromptSearch/PromptSearchRate'
;
const
RateLine
=
({
load
,
pastRecords
})
=>
{
useEffect
(()
=>
{
const
get
=
async
()
=>
{
...
...
@@ -13,7 +11,6 @@ const RateLine = ({load,pastRecords }) => {
}
get
();
},
[
load
]);
return
(
<
Surface
style
=
{
styles
.
surface
}
>
{
pastRecords
.
length
?
...
...
@@ -23,20 +20,17 @@ const RateLine = ({load,pastRecords }) => {
{
pastRecords
.
map
((
past
,
index
)
=>
(
<
View
key
=
{
index
}
style
=
{
styles
.
past
}
>
<
Text
style
=
{
styles
.
score
}
>
{
past
.
score
}
<
/Text
>
<
Text
style
=
{
styles
.
da
y
}
>
{
past
.
date
.
substring
(
5
,
7
)
+
'/'
+
past
.
date
.
substring
(
8
,
10
)}
<
/Text
>
<
Text
style
=
{
styles
.
da
te
}
>
{
past
.
date
.
substring
(
5
,
7
)
+
'/'
+
past
.
date
.
substring
(
8
,
10
)}
<
/Text
>
<
/View
>
))}
<
/View
>
<
Text
style
=
{
styles
.
message
}
>
당신의
점수
변화를
확인
해
보
세요
!<
/Text
>
<
Text
style
=
{
styles
.
message
}
>
당신의
점수
변화를
확인
하
세요
!<
/Text
>
<
/
>
:
<
PromptSearchRate
/>
}
<
/Surface
>
);
}
const
styles
=
StyleSheet
.
create
({
surface
:
{
padding
:
8
,
...
...
@@ -47,41 +41,40 @@ const styles = StyleSheet.create({
elevation
:
2
,
marginTop
:
10
,
marginBottom
:
10
,
borderRadius
:
5
borderRadius
:
5
,
},
info
:{
fontSize
:
23
,
fontWeight
:
'bold'
,
fontSize
:
22
,
marginBottom
:
5
,
fontFamily
:
"Bold"
,
},
score
:{
fontSize
:
20
,
color
:
"#002857"
fontFamily
:
"Bold"
,
},
scoreContainer
:{
flexDirection
:
'row'
,
justifyContent
:
'space-around'
,
width
:
'100%'
},
da
y
:{
fontSize
:
10
,
da
ta
:{
fontSize
:
10
,
textAlign
:
'center'
,
marginBottom
:
5
fontFamily
:
"Regular"
,
},
past
:{
alignItems
:
'center'
,
marginBottom
:
5
},
message
:{
margin
:
5
,
color
:
"#6e8fb4"
fontFamily
:
"Son"
,
marginTop
:
10
,
fontSize
:
20
,
}
});
const
RateLineContainer
=
(
{
load
,
pastRecords
}
)
=>
(
<
RateLine
load
=
{
load
}
pastRecords
=
{
pastRecords
}
/
>
);
export
default
connect
(
({
search
})
=>
({
pastRecords
:
search
.
pastRecords
...
...
Please
register
or
login
to post a comment