Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I_Helmet
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
21_22-J 62
I_Helmet
Commits
b654d2bf
Commit
b654d2bf
authored
Apr 13, 2022
by
Balasuriya D.A.M.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
React Router Dom Test
parent
d2363674
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
225 additions
and
11 deletions
+225
-11
IT18021080/Telemedicine-Chat-App/frontend/package-lock.json
IT18021080/Telemedicine-Chat-App/frontend/package-lock.json
+185
-0
IT18021080/Telemedicine-Chat-App/frontend/package.json
IT18021080/Telemedicine-Chat-App/frontend/package.json
+2
-1
IT18021080/Telemedicine-Chat-App/frontend/src/App.js
IT18021080/Telemedicine-Chat-App/frontend/src/App.js
+9
-3
IT18021080/Telemedicine-Chat-App/frontend/src/Pages/ChatPage.js
...1080/Telemedicine-Chat-App/frontend/src/Pages/ChatPage.js
+9
-0
IT18021080/Telemedicine-Chat-App/frontend/src/Pages/Homepage.js
...1080/Telemedicine-Chat-App/frontend/src/Pages/Homepage.js
+11
-0
IT18021080/Telemedicine-Chat-App/frontend/src/index.js
IT18021080/Telemedicine-Chat-App/frontend/src/index.js
+9
-7
No files found.
IT18021080/Telemedicine-Chat-App/frontend/package-lock.json
View file @
b654d2bf
This diff is collapsed.
Click to expand it.
IT18021080/Telemedicine-Chat-App/frontend/package.json
View file @
b654d2bf
...
...
@@ -2,7 +2,7 @@
"name"
:
"frontend"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"proxy"
:
"http://127.0.0.1:5000"
,
"proxy"
:
"http://127.0.0.1:5000"
,
"dependencies"
:
{
"@chakra-ui/react"
:
"^1.8.8"
,
"@emotion/react"
:
"^11.9.0"
,
...
...
@@ -13,6 +13,7 @@
"framer-motion"
:
"^6.2.10"
,
"react"
:
"^18.0.0"
,
"react-dom"
:
"^18.0.0"
,
"react-router-dom"
:
"^5.3.0"
,
"react-scripts"
:
"5.0.0"
,
"web-vitals"
:
"^2.1.4"
},
...
...
IT18021080/Telemedicine-Chat-App/frontend/src/App.js
View file @
b654d2bf
import
{
Button
}
from
'
@chakra-ui/react
'
;
import
'
./App.css
'
;
import
"
./App.css
"
;
import
{
Route
}
from
"
react-router-dom
"
;
import
Homepage
from
"
./Pages/Homepage
"
;
import
{
Button
}
from
"
@chakra-ui/react
"
;
import
ChatPage
from
"
./Pages/ChatPage
"
;
function
App
()
{
return
(
<
div
className
=
"
App
"
>
<
Route
path
=
"
/
"
component
=
{
Homepage
}
exact
/>
<
Route
path
=
"
/chats
"
component
=
{
ChatPage
}
/
>
<
Button
colorScheme
=
'
blue
'
>
Button
<
/Button
>
<
/div
>
);
...
...
IT18021080/Telemedicine-Chat-App/frontend/src/Pages/ChatPage.js
0 → 100644
View file @
b654d2bf
import
React
from
"
react
"
;
const
ChatPage
=
()
=>
{
return
(
<
div
>
Chat
Page
<
/div
>
);
}
export
default
ChatPage
\ No newline at end of file
IT18021080/Telemedicine-Chat-App/frontend/src/Pages/Homepage.js
0 → 100644
View file @
b654d2bf
import
React
from
"
react
"
;
const
Homepage
=
()
=>
{
return
(
<
div
>
Home
Page
<
/div
>
);
}
export
default
Homepage
;
\ No newline at end of file
IT18021080/Telemedicine-Chat-App/frontend/src/index.js
View file @
b654d2bf
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom
'
;
import
'
./index.css
'
;
import
App
from
'
./App
'
;
import
{
ChakraProvider
}
from
'
@chakra-ui/react
'
import
React
from
"
react
"
;
import
ReactDOM
from
"
react-dom
"
;
import
"
./index.css
"
;
import
App
from
"
./App
"
;
import
{
ChakraProvider
}
from
"
@chakra-ui/react
"
;
import
{
BrowserRouter
}
from
"
react-router-dom
"
;
ReactDOM
.
render
(
<
React
.
StrictMode
>
<
BrowserRouter
>
<
ChakraProvider
>
<
App
/>
<
/ChakraProvider
>
<
/BrowserRouter
>
<
/React.StrictMode>
,
document
.
getElementById
(
'
root
'
)
document
.
getElementById
(
"
root
"
)
//rendering everything on root tag
);
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