Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Prasetya Saputra
clone_excelso
Commits
a74daa9e
Commit
a74daa9e
authored
May 12, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perubahan design 1
parent
f813a651
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
46 deletions
+37
-46
RewardDetail.js
view/RewardDetail.js
+37
-46
No files found.
view/RewardDetail.js
View file @
a74daa9e
...
...
@@ -96,9 +96,8 @@ class RewardDetail extends React.Component {
return
(
<
View
style
=
{
styles
.
container
}
>
<
ScrollView
>
<
View
style
=
{
styles
.
body
}
>
<
Image
style
=
{{
height
:
250
,
flex
:
1
}}
source
=
{
this
.
state
.
image
?
{
uri
:
this
.
state
.
image
}
:
null
}
/
>
<
View
style
=
{
styles
.
images
}
>
<
Image
style
=
{{
height
:
250
}}
source
=
{
this
.
state
.
image
?
{
uri
:
this
.
state
.
image
}
:
null
}
/
>
<
View
style
=
{
styles
.
voucher_code
}
>
<
Text
style
=
{
styles
.
text_voucher
}
>
Voucher
Code
:
<
/Text
>
<
Text
style
=
{
styles
.
text_c_voucher
}
>
{
this
.
state
.
code
}
<
/Text
>
...
...
@@ -107,6 +106,8 @@ class RewardDetail extends React.Component {
<
Text
style
=
{
styles
.
text_expire
}
>
Expire
Time
:
<
/Text
>
<
Text
style
=
{
styles
.
text_c_expire
}
>
{
this
.
state
.
expire
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
content
}
>
{
this
.
state
.
cur_time
>=
this
.
state
.
exp_time
?
(
<
Button
style
=
{{
margin
:
5
}}
...
...
@@ -130,17 +131,12 @@ class RewardDetail extends React.Component {
/
>
)}
<
View
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
15
,
top
:
5
,
fontWeight
:
'bold'
}}
>
{
this
.
state
.
title
}
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
content
}
>
<
View
style
=
{{
margin
:
10
}}
>
<
HTML
html
=
{
this
.
state
.
content
}
/
>
<
/View
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/View
>
)
...
...
@@ -155,31 +151,25 @@ const styles = StyleSheet.create({
},
body
:
{
flex
:
1
,
backgroundColor
:
'red'
},
// content_code_expire: {
// top: -140,
// flex: 1,
// backgroundColor: 'green',
// marginRight: 30,
// marginLeft: 30,
// },
voucher_code
:
{
top
:
-
140
,
height
:
70
,
marginLeft
:
20
,
marginRight
:
20
,
marginLeft
:
20
,
marginRight
:
20
,
backgroundColor
:
'#01919c'
,
flex
:
1
,
marginTop
:
-
140
},
expire_time
:
{
top
:
-
140
,
flex
:
1
,
marginLeft
:
20
,
marginRight
:
20
,
marginLeft
:
20
,
marginRight
:
20
,
height
:
70
,
backgroundColor
:
'black'
,
},
...
...
@@ -224,6 +214,9 @@ const styles = StyleSheet.create({
backgroundColor
:
'#2ead28'
,
borderRadius
:
5
,
},
images
:
{
flex
:
1
,
}
})
...
...
@@ -253,5 +246,3 @@ const mapStateToProps = (state) => {
}
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
RewardDetail
);
{
/* */
}
\ No newline at end of file
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