diff --git a/client/components/pages/admin.jsx b/client/components/pages/admin.jsx index e91ef95..c011d5a 100644 --- a/client/components/pages/admin.jsx +++ b/client/components/pages/admin.jsx @@ -16,7 +16,7 @@ const Admin = props => { return (

Administration

- +
); }; diff --git a/client/components/pages/homepage.jsx b/client/components/pages/homepage.jsx index b8af805..fb1112c 100644 --- a/client/components/pages/homepage.jsx +++ b/client/components/pages/homepage.jsx @@ -7,7 +7,7 @@ const HomePage = props => { return (

This is the MERN template homepage.

- +
); }; diff --git a/client/components/panels/news-publisher.jsx b/client/components/panels/news-publisher.jsx index 1fcc701..d16fa66 100644 --- a/client/components/panels/news-publisher.jsx +++ b/client/components/panels/news-publisher.jsx @@ -1,5 +1,68 @@ +import React from 'react'; + const NewsPublisher = props => { - return null; + let titleElement, authorElement, bodyElement; + + return ( +
+

News Publisher

+
{ + e.preventDefault(); + await handleSubmit(titleElement.value, authorElement.value, bodyElement.value, props.uri, props.newsKey); + titleElement.value = authorElement.value = bodyElement.value = ''; + }}> +
+ + titleElement = e } /> +
+ +
+ + authorElement = e } /> +
+ +
+ +