Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_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
new_excelso
Commits
bd0c6f9f
Commit
bd0c6f9f
authored
Sep 11, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nambahin spasi , benerin jarak antar item price sama original price
parent
232b0fd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Item.js
view/Item.js
+4
-5
No files found.
view/Item.js
View file @
bd0c6f9f
...
...
@@ -128,10 +128,9 @@ class Item extends React.Component {
}
<
View
style
=
{{
flexDirection
:
'row'
,
marginTop
:
5
,
marginBottom
:
5
}}
>
<
NumberFormat
decimalScale
=
{
0
}
value
=
{
item
.
price
}
renderText
=
{
value
=>
<
Text
style
=
{{
marginLeft
:
5
,
fontSize
:
15
,
marginRight
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
}}
>
Rp
.
{
value
}
<
/Text>} displayType={'text'} thousandSeparator={true} prefix={''} /
>
{
item
.
original_price
<
item
.
price
?
null
:
<
NumberFormat
decimalScale
=
{
0
}
value
=
{
item
.
original_price
}
renderText
=
{
value
=>
<
Text
style
=
{{
marginLeft
:
3
,
fontSize
:
15
,
marginRight
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'#CCCCCC'
,
textDecorationLine
:
'line-through'
,
textDecorationStyle
:
'solid'
,
}}
>
Rp
.
{
value
}
<
/Text>} displayType={'text'} thousandSeparator={true} prefix={''} /
>
}
<
NumberFormat
decimalScale
=
{
0
}
value
=
{
item
.
price
}
renderText
=
{
value
=>
<
Text
style
=
{{
marginLeft
:
5
,
fontSize
:
15
,
marginRight
:
6
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
}}
>
Rp
.
{
value
}
<
/Text>} displayType={'text'} thousandSeparator={true} prefix={''} /
>
{
item
.
original_price
<
=
item
.
price
?
null
:
<
NumberFormat
decimalScale
=
{
0
}
value
=
{
item
.
original_price
}
renderText
=
{
value
=>
<
Text
style
=
{{
marginLeft
:
1
,
fontSize
:
15
,
marginRight
:
12
,
fontFamily
:
'Gotham-Light'
,
color
:
'#CCCCCC'
,
textDecorationLine
:
'line-through'
,
textDecorationStyle
:
'solid'
,
}}
>
Rp
.
{
value
}
<
/Text>} displayType={'text'} thousandSeparator={true} prefix={''} /
>
}
<
/View
>
<
/View
>
<
View
style
=
{{
marginLeft
:
10
,
marginRight
:
10
,
flexDirection
:
'row'
}}
>
{
...
...
@@ -178,8 +177,8 @@ class Item extends React.Component {
<
/View
>
{
item
.
note
!=
undefined
&&
item
.
note
!=
''
?
(
<
View
style
=
{{
marginLeft
:
5
,
marginRight
:
5
}}
>
<
Text
style
=
{{
fontSize
:
12
,
marginTop
:
8
,
marginHorizontal
:
5
,
fontFamily
:
'Gotham-Light'
,
color
:
'#838383'
}}
>
{
item
.
note
}
<
/Text
>
<
View
style
=
{{
marginLeft
:
12
,
marginRight
:
12
}}
>
<
Text
style
=
{{
fontSize
:
12
,
marginTop
:
5
,
fontFamily
:
'Gotham-Light'
,
color
:
'#838383'
}}
>
{
item
.
note
}
<
/Text
>
<
/View
>
)
:
(
false
)
}
...
...
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