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
5c465c38
Commit
5c465c38
authored
Aug 20, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO : Test giao diện đơn giản của xem lịch rảnh sinh viên
parent
c3bb2ba9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
5 deletions
+32
-5
index.js
src/screens/compensate/register/index.js
+12
-2
view.js
src/screens/compensate/register/view.js
+20
-3
No files found.
src/screens/compensate/register/index.js
View file @
5c465c38
import
React
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Text
,
View
,
StyleSheet
}
from
'react-native'
;
import
{
Text
,
View
,
StyleSheet
}
from
'react-native'
;
import
CompensateRegisterView
from
'./view'
;
import
CompensateRegisterView
from
'./view'
;
const
CompensateRegister
=
(
props
)
=>
{
const
CompensateRegister
=
(
props
)
=>
{
const
[
isShow
,
setShowSchedule
]
=
useState
(
false
);
return
(
return
(
<
CompensateRegisterView
/>
<
CompensateRegisterView
isShow
=
{
isShow
}
setShowSchedule
=
{
setShowSchedule
}
/
>
);
);
};
};
...
...
src/screens/compensate/register/view.js
View file @
5c465c38
...
@@ -8,7 +8,22 @@ import Dropdown from '../../../components/DropdownAlert/Dropdown';
...
@@ -8,7 +8,22 @@ import Dropdown from '../../../components/DropdownAlert/Dropdown';
import
TextMulti
from
'../../../components/Input/TextMulti'
;
import
TextMulti
from
'../../../components/Input/TextMulti'
;
import
Button
from
'../../../components/Button'
;
import
Button
from
'../../../components/Button'
;
const
CompensateRegisterView
=
props
=>
{
const
CompensateRegisterView
=
props
=>
{
const
{}
=
props
;
const
{
isShow
,
setShowSchedule
,
}
=
props
;
const
handleToggleSchedule
=
()
=>
{
setShowSchedule
(
prevState
=>
!
prevState
);
};
const
renderSchedule
=
(
item
)
=>
{
if
(
!
isShow
)
return
null
;
return
(
<
View
>
<
Text
>
hi
<
/Text
>
<
/View
>
)
}
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
Header
title
=
{
'Đăng kí báo bù'
}
isBack
/>
<
Header
title
=
{
'Đăng kí báo bù'
}
isBack
/>
...
@@ -94,9 +109,9 @@ const CompensateRegisterView = props => {
...
@@ -94,9 +109,9 @@ const CompensateRegisterView = props => {
/
>
/
>
<
View
style
=
{
styles
.
btnRegister
}
>
<
View
style
=
{
styles
.
btnRegister
}
>
<
Button
<
Button
title
=
{
'Xem lịch rảnh SV'
}
title
=
{
isShow
?
'Đóng'
:
'Xem lịch rảnh SV'
}
textColor
=
{
R
.
colors
.
white
}
textColor
=
{
R
.
colors
.
white
}
onPress
=
{
()
=>
{}
}
onPress
=
{
handleToggleSchedule
}
backgroundColor
=
{
R
.
colors
.
blue
}
backgroundColor
=
{
R
.
colors
.
blue
}
fontSize
=
{
R
.
sizes
.
sm
}
fontSize
=
{
R
.
sizes
.
sm
}
fontFamily
=
{
R
.
fonts
.
fontMedium
}
fontFamily
=
{
R
.
fonts
.
fontMedium
}
...
@@ -105,6 +120,8 @@ const CompensateRegisterView = props => {
...
@@ -105,6 +120,8 @@ const CompensateRegisterView = props => {
/
>
/
>
<
/View
>
<
/View
>
{
renderSchedule
()}
<
/View
>
<
/View
>
<
/View
>
<
/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