")
+ throw new Error("no content provided");
+
axiosLocalhost.post("/posts", {
title: titleValue,
content: contentValue,
@@ -37,6 +42,8 @@ export default function SubmitPostButton(props: TSubmitPostButton) {
setIsDisabled(false);
},
onSuccess: () => {
+ setContentValue("");
+ setTitleValue("");
navigate("/");
},
});
diff --git a/enshi/src/constants/textForSkeleton.ts b/enshi/src/constants/textForSkeleton.ts
new file mode 100644
index 0000000..b166637
--- /dev/null
+++ b/enshi/src/constants/textForSkeleton.ts
@@ -0,0 +1,12 @@
+export const pText = `The goal of typography is to relate font size, line
+ height, and line width in a proportional way that
+ maximizes beauty and makes reading easier and more
+ pleasant. The question is: What proportion(s) will give
+ us the best results? The golden ratio is often observed
+ in nature where beauty and utility intersect; perhaps we
+ can use this “divine” proportion to enhance these
+ attributes in our typography.`;
+
+export const headerLong = `THUS SHU SHU HDFQIUWKHFQWHF KJQWHqwfiqfquwdhqwjdk`;
+
+export const headerShort = `THUS SHU SHU HDFQIUWKHFQWHF`;
diff --git a/enshi/src/routes/routes.tsx b/enshi/src/routes/routes.tsx
index a6f3544..fd1c62a 100644
--- a/enshi/src/routes/routes.tsx
+++ b/enshi/src/routes/routes.tsx
@@ -4,6 +4,7 @@ import {
Route,
useRouteError,
} from "react-router-dom";
+import ArticleViewer from "../Components/ArticleViewer/ArticleViewer";
import AuthPageWrapper from "../Pages/AuthPageWrapper/AuthPageWrapper";
import LoginPage from "../Pages/LoginRegisterPage/LoginPage/LoginPage";
import RegisterPage from "../Pages/LoginRegisterPage/RegisterPage/RegisterPage";
@@ -36,7 +37,9 @@ export const routes = createRoutesFromElements(
}
- >
+ />
+
+ } />