Skip to content
Snippets Groups Projects
Commit 03aeb94d authored by lfr20's avatar lfr20
Browse files

Added route to Achievements, edit an Achievement and datacard of an achievement

parent b7b75465
Branches
No related tags found
1 merge request!46Gamefication admin
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment