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
4fff1efc
Commit
4fff1efc
authored
Jun 10, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
motm tambah icon di menu
parent
522814a7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
Item.js
view/Item.js
+17
-2
TopUpInfo.js
view/TopUpInfo.js
+2
-2
No files found.
view/Item.js
View file @
4fff1efc
...
...
@@ -112,7 +112,22 @@ class Item extends React.Component {
<
/View
>
<
View
style
=
{{
flex
:
2
,
height
:
150
}}
>
<
View
style
=
{{
marginLeft
:
5
,
marginRight
:
5
}}
>
{
item
.
motm
?
(
<
View
style
=
{{
marginLeft
:
5
,
flexDirection
:
'row'
,
alignItems
:
'center'
}}
>
<
Icon
name
=
'star'
type
=
'font-awesome'
color
=
'#CFB368'
size
=
{
14
}
/
>
<
Text
style
=
{{
fontSize
:
14
,
margin
:
5
,
marginRight
:
10
,
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
}}
>
{
item
.
name
}
<
/Text
>
<
/View
>
)
:
(
<
Text
style
=
{{
fontSize
:
14
,
margin
:
5
,
marginRight
:
10
,
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
}}
>
{
item
.
name
}
<
/Text
>
)
}
<
NumberFormat
decimalScale
=
{
0
}
value
=
{
item
.
price
}
renderText
=
{
value
=>
<
Text
style
=
{{
fontSize
:
14
,
margin
:
5
,
marginRight
:
10
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
}}
>
Rp
.
{
value
}
<
/Text>} displayType={'text'} thousandSeparator={true} prefix={''} /
>
<
/View
>
<
View
style
=
{{
marginLeft
:
5
,
marginRight
:
5
,
flexDirection
:
'row'
}}
>
...
...
@@ -153,7 +168,7 @@ class Item extends React.Component {
<
/View
>
)}
<
/ScrollView
>
<
/View
>
<
/View
>
)
}
}
...
...
view/TopUpInfo.js
View file @
4fff1efc
...
...
@@ -46,12 +46,12 @@ export default class TopUpInfo extends React.Component {
<
View
style
=
{
styles
.
item_container
}
key
=
{
i
}
>
<
Collapse
>
<
CollapseHeader
>
<
View
style
=
{{
flexDirection
:
'row'
,
height
:
30
,
margin
:
20
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
height
:
30
,
margin
:
20
}}
>
<
Text
style
=
{
styles
.
item_title
}
>
{
item
.
title
}
<
/Text
>
<
Image
style
=
{
styles
.
item_image
}
source
=
{
item
.
title_thumb
?
{
uri
:
item
.
title_thumb
}
:
null
}
/
>
<
/View
>
<
/CollapseHeader
>
<
CollapseBody
>
<
CollapseBody
style
=
{{
marginHorizontal
:
20
}}
>
<
HTML
html
=
{
item
.
content
}
tagsStyles
=
{{
p
:
{
fontFamily
:
'Gotham-Light'
,
marginTop
:
8
,
marginBottom
:
8
,
color
:
'#adadad'
},
blockquote
:
{
backgroundColor
:
"#f1f1f1"
,
padding
:
12
,
paddingBottom
:
0
,
marginTop
:
6
,
color
:
'#adadad'
},
ul
:
{
fontFamily
:
'Gotham-Light'
,
marginLeft
:
0
,
color
:
'#adadad'
,
paddingLeft
:
0
},
li
:
{
fontFamily
:
'Gotham-Light'
,
marginLeft
:
0
,
color
:
'#adadad'
,
paddingLeft
:
0
}
}}
/
>
<
/CollapseBody
>
<
/Collapse
>
...
...
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