mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-29 21:02:13 +01:00
asd
This commit is contained in:
11
components/AdminControl.tsx
Normal file
11
components/AdminControl.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import React from "react";
|
||||
import styles from "../styles/modules/AdminControl.module.scss";
|
||||
|
||||
export default function AdminControl() {
|
||||
return (
|
||||
<div className={styles.adminControl}>
|
||||
<button className="danger">Delete this article</button>
|
||||
<button className="warning">Edit this article</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
15
components/AdminNav.tsx
Normal file
15
components/AdminNav.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from "react";
|
||||
import Link from "next/link";
|
||||
import styles from "../styles/modules/AdminNav.module.scss";
|
||||
|
||||
function AdminNav() {
|
||||
return (
|
||||
<div className={styles.adminNav}>
|
||||
<Link href={"/admin"}>Admin</Link>
|
||||
<Link href={"/admin/articles/editor/0"}>New article</Link>
|
||||
<Link href={"/admin/categories/editor/0"}>New category</Link>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default AdminNav;
|
||||
Reference in New Issue
Block a user