Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PortalMEC-React
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
Harbor Registry
Model registry
Operate
Environments
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
PortalMEC
PortalMEC-React
Commits
03aeb94d
Commit
03aeb94d
authored
4 years ago
by
lfr20
Browse files
Options
Downloads
Patches
Plain Diff
Added route to Achievements, edit an Achievement and datacard of an achievement
parent
b7b75465
Branches
Branches containing commit
No related tags found
1 merge request
!46
Gamefication admin
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/App.js
+15
-0
15 additions, 0 deletions
src/App.js
with
15 additions
and
0 deletions
src/App.js
+
15
−
0
View file @
03aeb94d
...
...
@@ -99,6 +99,10 @@ import BlockedUser from "./Admin/Pages/Pages/SubPages/BlockedUsers";
import
Gamefication
from
"
./Admin/Pages/Pages/SubPages/Gamefication
"
import
GameficationCard
from
"
./Admin/Components/Components/DataCards/GameficationCard
"
import
CreateItem
from
"
./Admin/Components/Components/Inputs/CreateItem/CreateItem
"
import
EditItem
from
"
./Admin/Components/Components/Inputs/EditItem/EditItem
"
import
GameficationAchieves
from
'
./Admin/Pages/Pages/SubPages/GameficationAchieves
'
import
AchievementCard
from
'
./Admin/Components/Components/DataCards/AchievementsCard
'
import
EditAchievement
from
"
./Admin/Components/Components/Inputs/EditAchievement
"
import
PropTypes
from
"
prop-types
"
;
import
Typography
from
"
@material-ui/core/Typography
"
;
...
...
@@ -366,6 +370,13 @@ export default function App() {
component
=
{
Link
}
{...
a11yProps
(
16
)}
/
>
<
Tab
label
=
"
Achievements
"
to
=
"
/admin/achievements
"
icon
=
{
<
DisplayIcon
i
=
{
17
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
17
)}
/
>
<
/Tabs
>
<
/AppBar
>
<
div
style
=
{{
padding
:
"
2em
"
}}
>
...
...
@@ -437,6 +448,10 @@ export default function App() {
<
Route
path
=
"
/admin/gamefication
"
component
=
{
Gamefication
}
/
>
<
Route
path
=
"
/admin/item/:id
"
component
=
{
GameficationCard
}
/
>
<
Route
path
=
"
/admin/createItem
"
component
=
{
CreateItem
}
/
>
<
Route
path
=
"
/admin/EditItem/:id
"
component
=
{
EditItem
}
/
>
<
Route
path
=
"
/admin/achievements
"
component
=
{
GameficationAchieves
}
/
>
<
Route
path
=
"
/admin/achievement/:id
"
component
=
{
AchievementCard
}
/
>
<
Route
path
=
"
/admin/EditAchievement/:id
"
component
=
{
EditAchievement
}
/
>
<
/div
>
<
/div
>
<
/Switch
>
...
...
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