Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppUms_Lecturer
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
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
tungnq
AppUms_Lecturer
Commits
74d29a3c
Commit
74d29a3c
authored
Aug 29, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Refactor và kiểm tra giao diện màn hình home
parent
be6553f0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
76 deletions
+8
-76
header.js
src/screens/home/header.js
+1
-0
style.js
src/screens/home/style.js
+3
-3
view.js
src/screens/home/view.js
+2
-7
view.js
src/screens/list_work/view.js
+2
-0
index.js
src/screens/login/index.js
+0
-17
view.js
src/screens/login/view.js
+0
-49
No files found.
src/screens/home/header.js
View file @
74d29a3c
...
@@ -38,6 +38,7 @@ const HeaderHome = props => {
...
@@ -38,6 +38,7 @@ const HeaderHome = props => {
<
/View
>
<
/View
>
<
TextInput
<
TextInput
value
=
{
value
}
value
=
{
value
}
fontSize
=
{
R
.
fontsize
.
fontSizeContent
}
onChangeText
=
{
onChangeText
}
onChangeText
=
{
onChangeText
}
placeholder
=
{
'Tìm kiếm'
}
placeholder
=
{
'Tìm kiếm'
}
placeholderTextColor
=
{
R
.
colors
.
white
}
placeholderTextColor
=
{
R
.
colors
.
white
}
...
...
src/screens/home/style.js
View file @
74d29a3c
...
@@ -99,7 +99,7 @@ const styles = StyleSheet.create({
...
@@ -99,7 +99,7 @@ const styles = StyleSheet.create({
marginLeft
:
10
,
marginLeft
:
10
,
},
},
text_card_info
:
{
text_card_info
:
{
fontSize
:
R
.
sizes
.
md
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontWeight
:
'400'
,
fontWeight
:
'400'
,
color
:
R
.
colors
.
black
,
color
:
R
.
colors
.
black
,
fontFamily
:
R
.
fonts
.
InterRegular
,
fontFamily
:
R
.
fonts
.
InterRegular
,
...
@@ -127,10 +127,10 @@ const styles = StyleSheet.create({
...
@@ -127,10 +127,10 @@ const styles = StyleSheet.create({
marginHorizontal
:
15
,
marginHorizontal
:
15
,
},
},
menu_title
:
{
menu_title
:
{
fontSize
:
R
.
fontsize
.
font
s
SizeSubTitle
,
fontSize
:
R
.
fontsize
.
fontSizeSubTitle
,
fontWeight
:
'600'
,
fontWeight
:
'600'
,
color
:
R
.
colors
.
black
,
color
:
R
.
colors
.
black
,
fontFamily
:
R
.
fonts
.
Inter
Medium
,
fontFamily
:
R
.
fonts
.
font
Medium
,
},
},
scroll
:
{
scroll
:
{
flex
:
1
,
flex
:
1
,
...
...
src/screens/home/view.js
View file @
74d29a3c
...
@@ -8,10 +8,7 @@ import {
...
@@ -8,10 +8,7 @@ import {
ScrollView
,
ScrollView
,
TouchableWithoutFeedback
,
TouchableWithoutFeedback
,
Keyboard
,
Keyboard
,
SafeAreaView
,
Image
,
Image
,
StatusBar
,
Platform
,
}
from
'react-native'
;
}
from
'react-native'
;
import
HeaderCus
from
'../home/header'
;
import
HeaderCus
from
'../home/header'
;
import
R
from
'../../assets/R'
;
import
R
from
'../../assets/R'
;
...
@@ -20,17 +17,15 @@ import styles from './style';
...
@@ -20,17 +17,15 @@ import styles from './style';
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
*
as
SCREENNAME
from
'../../routers/ScreenNames'
;
import
*
as
SCREENNAME
from
'../../routers/ScreenNames'
;
const
HomeView
=
props
=>
{
const
HomeView
=
({
const
{
menuActivity
,
menuActivity
,
menuStatistics
,
menuStatistics
,
menuNotification
,
menuNotification
,
selectedMenuItem
,
searchText
,
searchText
,
userProfile
,
userProfile
,
onMenuItemPress
,
onMenuItemPress
,
onSearchChange
,
onSearchChange
,
}
=
props
;
})
=>
{
const
navigate
=
useNavigation
();
const
navigate
=
useNavigation
();
const
renderMenuItem
=
({
item
})
=>
{
const
renderMenuItem
=
({
item
})
=>
{
...
...
src/screens/list_work/view.js
View file @
74d29a3c
...
@@ -62,6 +62,8 @@ const ListWorkView = (props) => {
...
@@ -62,6 +62,8 @@ const ListWorkView = (props) => {
<
Header
title
=
{
'Danh sách công việc'
}
isBack
/>
<
Header
title
=
{
'Danh sách công việc'
}
isBack
/>
<
View
style
=
{
styles
.
body
}
>
<
View
style
=
{
styles
.
body
}
>
{
renderTabView
()}
{
renderTabView
()}
<
/View
>
<
/View
>
<
FAB
>
<
FAB
>
<
SubButton
<
SubButton
...
...
src/screens/login/index.js
deleted
100644 → 0
View file @
be6553f0
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
React
from
'react'
;
import
{
Text
,
View
}
from
'react-native'
;
import
LoginView
from
'./view'
;
import
{
TABNAVIGATOR
}
from
'../../routers/ScreenNames'
;
const
Login
=
({
params
})
=>
{
const
navigate
=
useNavigation
();
const
onLogin
=
()
=>
{
navigate
.
navigate
(
TABNAVIGATOR
);
console
.
log
(
'Hello'
);
};
return
<
LoginView
onLogin
=
{
onLogin
}
/>
;
};
export
default
Login
;
src/screens/login/view.js
deleted
100644 → 0
View file @
be6553f0
import
React
from
'react'
;
import
{
Text
,
View
,
StyleSheet
,
SafeAreaView
}
from
'react-native'
;
import
TextField
from
'../../components/Input/TextField'
;
import
{
useForm
,
Controller
}
from
'react-hook-form'
;
import
R
from
'../../assets/R'
;
import
Header
from
'../../components/Header/Header'
;
import
Button
from
'../../components/Button'
;
const
LoginView
=
({
onLogin
})
=>
{
const
{
control
,
handleSubmit
,
formState
:
{
errors
},
}
=
useForm
();
return
(
<
SafeAreaView
style
=
{
styles
.
container
}
>
<
Header
/>
<
View
style
=
{
styles
.
container
}
>
<
Controller
control
=
{
control
}
rules
=
{{
required
:
true
,
maxLength
:
225
,
}}
render
=
{({
field
:
{
onChange
,
onBlur
,
value
}})
=>
(
<
TextField
title
=
{
'Mã phẩm giống'
}
required
value
=
{
value
}
onChangeText
=
{
onChange
}
error
=
{
errors
.
code
}
/
>
)}
name
=
"code"
/>
<
Button
title
=
{
'Lưu'
}
onPress
=
{
handleSubmit
(
onLogin
)}
/
>
<
/View
>
<
/SafeAreaView
>
);
};
export
default
LoginView
;
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
,
},
});
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