Skip to content

Commit

Permalink
Add missing file for new admin pages (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
Redande authored Aug 29, 2023
1 parent 591a8fa commit 6f30934
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions frontend/components/NewLayout/Admin/Links.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import Link from "next/link"

import { styled } from "@mui/material/styles"

import { useTranslator } from "/hooks/useTranslator"
import CommonTranslations from "/translations/common"

const Container = styled("div")`
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
padding: 0 2rem;
`

export const Links = () => {
const t = useTranslator(CommonTranslations)

return (
<Container>
<Link href="/_new/admin/courses">{t("courses")}</Link>
<Link href="/_new/admin/study-modules">{t("modules")}</Link>
<Link href="/_new/admin/email-templates">{t("emailTemplates")}</Link>
<Link href="/_new/admin/users/search">{t("userSearch")}</Link>
</Container>
)
}
1 change: 1 addition & 0 deletions frontend/components/NewLayout/Admin/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Links"

0 comments on commit 6f30934

Please sign in to comment.