Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 16
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J 16
22_23-J 16
Commits
aaffd157
Commit
aaffd157
authored
May 15, 2023
by
Kiridena I.T.K_IT19981840
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'practitioner-menu' into 'master'
practitioner main menu completed See merge request
!39
parents
39717f65
161c738c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
1 deletion
+44
-1
emma-frontend/App.js
emma-frontend/App.js
+5
-0
emma-frontend/components/practitionerscreens/mainViewWithMenu.js
...ontend/components/practitionerscreens/mainViewWithMenu.js
+38
-0
emma-frontend/components/practitionerscreens/registration.js
emma-frontend/components/practitionerscreens/registration.js
+1
-1
No files found.
emma-frontend/App.js
View file @
aaffd157
...
...
@@ -19,6 +19,7 @@ import PatientMainChatView from "./components/patientscreens/patientMainChatView
import
PatientAllPractitioners
from
"
./components/patientscreens/allPractitioners
"
;
import
PatientNFTRequests
from
"
./components/patientscreens/nftRequests
"
;
import
PractitionerRegistration
from
"
./components/practitionerscreens/registration
"
;
import
PractitionerMainView
from
"
./components/practitionerscreens/mainViewWithMenu
"
;
const
Stack
=
createStackNavigator
();
...
...
@@ -116,6 +117,10 @@ export default function App() {
name
=
"
PractitionerRegistration
"
component
=
{
PractitionerRegistration
}
/
>
<
Stack
.
Screen
name
=
"
PractitionerMainView
"
component
=
{
PractitionerMainView
}
/
>
<
/Stack.Navigator
>
)
:
(
<
SplashScreenComponent
/>
...
...
emma-frontend/components/practitionerscreens/mainViewWithMenu.js
0 → 100644
View file @
aaffd157
import
React
from
"
react
"
;
import
{
View
,
Button
,
StyleSheet
}
from
"
react-native
"
;
const
handleUserReq
=
()
=>
{
console
.
log
(
"
User requests
"
);
};
const
handleRequesting
=
()
=>
{
console
.
log
(
"
Request NFT
"
);
};
export
default
function
PractitionerMainView
()
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
buttonContainer
}
>
<
Button
title
=
"
User Requests
"
onPress
=
{()
=>
handleUserReq
()}
/
>
<
/View
>
<
View
style
=
{
styles
.
buttonContainer
}
>
<
Button
title
=
"
Request EHRs
"
onPress
=
{()
=>
handleRequesting
()}
/
>
<
/View
>
<
View
style
=
{
styles
.
buttonContainer
}
>
<
Button
title
=
"
Others
"
onPress
=
{()
=>
handleButtonPress
(
"
Others
"
)}
/
>
<
/View
>
<
/View
>
);
}
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
,
},
buttonContainer
:
{
marginVertical
:
10
,
width
:
"
80%
"
,
},
});
emma-frontend/components/practitionerscreens/registration.js
View file @
aaffd157
...
...
@@ -85,7 +85,7 @@ export default function PractitionerRegistration() {
text
:
"
Close
"
,
style
:
"
cancel
"
,
onPress
:
()
=>
{
navigation
.
navigate
(
"
P
atientMainChat
View
"
);
navigation
.
navigate
(
"
P
ractitionerMain
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