Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Giang Tran
InvestCustomer
Commits
f2ad7a77
Commit
f2ad7a77
authored
Jul 14, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
6d942be1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
6 deletions
+63
-6
SearchModal.js
src/Screens/Menu/MyGroup/SearchModal.js
+59
-6
en.js
src/helper/i18/locales/en.js
+2
-0
vn.js
src/helper/i18/locales/vn.js
+2
-0
No files found.
src/Screens/Menu/MyGroup/SearchModal.js
View file @
f2ad7a77
...
@@ -8,6 +8,7 @@ import {
...
@@ -8,6 +8,7 @@ import {
TouchableWithoutFeedback
,
TouchableWithoutFeedback
,
Platform
,
Platform
,
DeviceEventEmitter
,
DeviceEventEmitter
,
Dimensions
,
}
from
'react-native'
;
}
from
'react-native'
;
import
R
from
'../../../assets/R'
;
import
R
from
'../../../assets/R'
;
import
{
import
{
...
@@ -28,13 +29,47 @@ import TextField from '../../../components/Input/TextField';
...
@@ -28,13 +29,47 @@ import TextField from '../../../components/Input/TextField';
import
IconClose
from
'react-native-vector-icons/AntDesign'
;
import
IconClose
from
'react-native-vector-icons/AntDesign'
;
const
{
width
}
=
Dimensions
.
get
(
'window'
);
const
ListLevels
=
[
{
value
:
'all'
,
name
:
I18n
.
t
(
'All'
),
},
{
value
:
'level1'
,
name
:
I18n
.
t
(
'level1'
),
},
{
value
:
'level2'
,
name
:
I18n
.
t
(
'level2'
),
},
{
value
:
'level3'
,
name
:
I18n
.
t
(
'level3'
),
},
];
const
ListStatus
=
[
{
value
:
'all'
,
name
:
I18n
.
t
(
'All'
),
},
{
value
:
'Open'
,
name
:
I18n
.
t
(
'Opened'
),
},
{
value
:
'Unopen'
,
name
:
I18n
.
t
(
'Unopen'
),
},
];
const
SearchProductCodeModal
=
(
props
)
=>
{
const
SearchProductCodeModal
=
(
props
)
=>
{
const
navigate
=
useNavigation
();
const
navigate
=
useNavigation
();
const
[
textSearch
,
setTextSearch
]
=
useState
(
''
);
const
[
product
,
setProduct
]
=
useState
(
null
);
const
[
level
,
setLevel
]
=
useState
(
null
);
const
[
period
,
setPeriod
]
=
useState
(
new
Date
());
const
[
open
,
setOpen
]
=
useState
(
new
Date
());
const
[
dataProduct
,
setDataProduct
]
=
useState
([]);
const
[
dataProductFilter
,
setDataProductFilter
]
=
useState
([]);
return
(
return
(
<
Modal
<
Modal
...
@@ -74,17 +109,34 @@ const SearchProductCodeModal = (props) => {
...
@@ -74,17 +109,34 @@ const SearchProductCodeModal = (props) => {
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
TextField
title
=
{
I18n
.
t
(
'NamePartner'
)}
/
>
<
TextField
onChangeText
=
{(
val
)
=>
setTextSearch
(
val
)}
title
=
{
I18n
.
t
(
'NamePartner'
)}
/
>
<
AppText
<
AppText
style
=
{[
styles
.
txtTitle
,
{
marginTop
:
HEIGHTXD
(
40
)}]}
style
=
{[
styles
.
txtTitle
,
{
marginTop
:
HEIGHTXD
(
40
)}]}
i18nKey
=
{
'level'
}
i18nKey
=
{
'level'
}
/
>
/
>
<
PickerItem
width
=
{
width
-
40
}
data
=
{
ListLevels
}
onValueChange
=
{(
value
,
items
)
=>
{
setLevel
(
items
);
}}
/
>
<
AppText
<
AppText
style
=
{[
styles
.
txtTitle
,
{
marginTop
:
HEIGHTXD
(
40
)}]}
style
=
{[
styles
.
txtTitle
,
{
marginTop
:
HEIGHTXD
(
40
)}]}
i18nKey
=
{
'OpenAccountCQG'
}
i18nKey
=
{
'OpenAccountCQG'
}
/
>
/
>
<
PickerItem
width
=
{
width
-
40
}
data
=
{
ListStatus
}
onValueChange
=
{(
value
,
items
)
=>
{
setOpen
(
items
);
}}
/
>
<
View
<
View
style
=
{{
style
=
{{
...
@@ -94,6 +146,7 @@ const SearchProductCodeModal = (props) => {
...
@@ -94,6 +146,7 @@ const SearchProductCodeModal = (props) => {
}}
>
}}
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
{
onPress
=
{()
=>
{
console
.
log
(
level
,
open
,
textSearch
);
props
.
toggleModal
();
props
.
toggleModal
();
navigate
.
navigate
(
SEARCHPARTNER
);
navigate
.
navigate
(
SEARCHPARTNER
);
}}
}}
...
...
src/helper/i18/locales/en.js
View file @
f2ad7a77
...
@@ -345,4 +345,6 @@ export default {
...
@@ -345,4 +345,6 @@ export default {
SearchPartner
:
'Search partner'
,
SearchPartner
:
'Search partner'
,
level
:
'Level'
,
level
:
'Level'
,
NamePartner
:
'Name partner'
,
NamePartner
:
'Name partner'
,
Opened
:
'Opened'
,
Unopen
:
'Unopene'
,
};
};
src/helper/i18/locales/vn.js
View file @
f2ad7a77
...
@@ -343,4 +343,6 @@ export default {
...
@@ -343,4 +343,6 @@ export default {
SearchPartner
:
'Tìm kiếm đối tác'
,
SearchPartner
:
'Tìm kiếm đối tác'
,
level
:
'Cấp'
,
level
:
'Cấp'
,
NamePartner
:
'Tên đối tác'
,
NamePartner
:
'Tên đối tác'
,
Opened
:
'Đã mở'
,
Unopen
:
'Chưa mở'
,
};
};
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