Skip to content

Commit

Permalink
Export old admin pages under new layout (#1234)
Browse files Browse the repository at this point in the history
* Export old admin pages under new layout

* Remove unused import
  • Loading branch information
Redande authored Aug 29, 2023
1 parent f5ddb48 commit a6eb489
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/pages/_new/admin/courses.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import CoursesPage from "pages/courses"

export default CoursesPage
3 changes: 3 additions & 0 deletions frontend/pages/_new/admin/email-templates.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import EmailTemplatesPage from "pages/email-templates"

export default EmailTemplatesPage
23 changes: 23 additions & 0 deletions frontend/pages/_new/admin/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import Background from "components/NewLayout/Background"

import Container from "/components/Container"
import { Links } from "/components/NewLayout/Admin"
import { useBreadcrumbs } from "/hooks/useBreadcrumbs"

const Admin = () => {
useBreadcrumbs([
{
translation: "admin",
href: "/admin",
},
])

return (
<Container>
<Background />
<Links />
</Container>
)
}

export default Admin
3 changes: 3 additions & 0 deletions frontend/pages/_new/admin/study-modules.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import StudyModulesPage from "pages/study-modules"

export default StudyModulesPage
3 changes: 3 additions & 0 deletions frontend/pages/_new/admin/users/search/[[...text]].tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import CoursesPage from "pages/users/search/[[...text]]"

export default CoursesPage
1 change: 1 addition & 0 deletions frontend/translations/breadcrumbs/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ export default {
signUp: "Sign up",
home: "Home",
installation: "Installation",
admin: "Admin",
} as const
1 change: 1 addition & 0 deletions frontend/translations/breadcrumbs/fi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ export default {
signUp: "Rekisteröidy",
installation: "Asennus",
home: "Etusivu",
admin: "Ylläpito",
} as const

0 comments on commit a6eb489

Please sign in to comment.