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
5a45a2b9
Commit
5a45a2b9
authored
Jul 10, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update padding
parent
810dc8fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Item.js
view/Item.js
+4
-4
MenuSelection.js
view/MenuSelection.js
+1
-1
No files found.
view/Item.js
View file @
5a45a2b9
...
...
@@ -102,14 +102,14 @@ class Item extends React.Component {
<
/View
>
<
/View
>
<
/Modal
>
<
View
style
=
{{
flex
:
0.6
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Menu Detail'
,
{
nameMenu
:
item
.
name
,
desc
:
item
.
description
,
image
:
item
.
image
})}
>
{
/* <Image source={{ uri: item.image }} style={{ height: 100, width: 100, borderRadius: 10, }}></Image> */
}
<
Image
style
=
{{
height
:
100
,
width
:
100
,
borderRadius
:
10
,
}}
source
=
{
item
.
image
?
{
uri
:
item
.
image
}
:
null
}
/
>
<
/TouchableOpacity
>
<
/View
>
<
View
style
=
{{
flex
:
0.7
}}
>
<
View
style
=
{{
marginLeft
:
5
,
marginRight
:
5
}}
>
<
View
style
=
{{
flex
:
2
}}
>
<
View
style
=
{{
marginLeft
:
10
,
marginRight
:
19
}}
>
{
item
.
motm
?
(
<
View
style
=
{{
marginLeft
:
5
,
flexDirection
:
'row'
,
alignItems
:
'center'
}}
>
...
...
@@ -128,7 +128,7 @@ class Item extends React.Component {
<
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'
}}
>
<
View
style
=
{{
marginLeft
:
10
,
marginRight
:
10
,
flexDirection
:
'row'
}}
>
{
item
.
sold_out
==
true
?
(
<
Text
style
=
{{
fontSize
:
14
,
margin
:
5
,
marginRight
:
10
,
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
}}
>
Sold
Out
<
/Text
>
...
...
view/MenuSelection.js
View file @
5a45a2b9
...
...
@@ -384,7 +384,7 @@ class MenuSelection extends React.Component {
windowSize
=
{
10
}
/
>
)
:
(
<
Text
style
=
{{
flexWrap
:
'wrap'
,
fontFamily
:
'Gotham-Light'
,
color
:
'#b1b1b2'
,
textAlign
:
'center'
,
top
:
20
}}
>
Tidak
Ada
Menu
untuk
kategory
ini
!
<
/Text
>
<
Text
style
=
{{
flexWrap
:
'wrap'
,
fontFamily
:
'Gotham-Light'
,
color
:
'#b1b1b2'
,
textAlign
:
'center'
,
top
:
20
}}
>
{
i18n
.
t
(
'itemnotfound'
)}
<
/Text
>
)
)}
<
/View
>
...
...
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