Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
compendium-v2
Commits
8d23c16a
Commit
8d23c16a
authored
2 years ago
by
Saket Agrahari
Browse files
Options
Downloads
Patches
Plain Diff
missing file
parent
41a49426
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webapp/src/App.tsx
+9
-9
9 additions, 9 deletions
webapp/src/App.tsx
with
9 additions
and
9 deletions
webapp/src/App.tsx
+
9
−
9
View file @
8d23c16a
import
React
from
'
react
'
;
import
React
,
{
ReactElement
}
from
'
react
'
;
import
AnnualReport
from
'
./AnnualReport
'
;
import
DataAnalysis
from
'
./DataAnalysis
'
;
import
Navigation
from
'
./Navigation
'
;
...
...
@@ -11,20 +11,20 @@ import {BrowserRouter as Router,Switch, Route} from 'react-router-dom'
// console.log(api_url)
function
App
():
JSX
.
Element
{
function
App
():
React
Element
{
return
(
<
Router
>
<
div
className
=
'app'
>
<
Navigation
/>
<
Switch
>
<
Route
exact
path
=
"/about"
component
=
{
About
}
/>
<
Route
exact
path
=
'/analysis'
component
=
{
DataAnalysis
}
/>
<
Route
exact
path
=
"/report"
component
=
{
AnnualReport
}
/>
<
Switch
>
<
Route
exact
path
=
"/about"
component
=
{
About
}
/>
<
Route
exact
path
=
'/analysis'
component
=
{
DataAnalysis
}
/>
<
Route
exact
path
=
"/report"
component
=
{
AnnualReport
}
/>
<
Route
path
=
"*"
component
=
{
About
}
/>
</
Switch
>
</
div
>
</
Router
>
);
}
export
default
App
;
\ No newline at end of file
export
default
App
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment