diff --git a/src/countries/us/us.js b/src/countries/us/us.js
index 01bb11d..cd77f0c 100644
--- a/src/countries/us/us.js
+++ b/src/countries/us/us.js
@@ -2,7 +2,6 @@ import { CssBaseline, Grid, Card, CardContent, Container, Typography, CardMedia,
import * as React from 'react';
import { useEffect, useState } from 'react';
// import Copyright from '../components/Copyright';
-import SubmitArticle from '../../components/SubmitArticle';
import Accordion from '@mui/material/Accordion';
import AccordionSummary from '@mui/material/AccordionSummary';
import AccordionDetails from '@mui/material/AccordionDetails';
diff --git a/src/delete/SubmitArticle.js b/src/delete/SubmitArticle.js
new file mode 100644
index 0000000..c548e7b
--- /dev/null
+++ b/src/delete/SubmitArticle.js
@@ -0,0 +1,68 @@
+import { useState } from 'react';
+import { TextField, Button, CircularProgress, Box } from '@mui/material';
+import * as React from 'react';
+
+const SubmitArticle = () => {
+ const [article, setArticle] = useState('');
+ const [mediaOrg, setMediaOrg] = useState('');
+ const [url, setUrl] = useState('');
+ const [iam, setIam] = useState('');
+ const [isLoading, setIsLoading] = useState(false);
+
+ const handleSubmit = async () => {
+ setIsLoading(true);
+ const requestBody = {
+ article,
+ mediaOrg,
+ url,
+ iam,
+ };
+ try {
+ const response = await fetch('https://sample.com/submit', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify(requestBody),
+ });
+ console.log('response:', response);
+ setIsLoading(false);
+ setArticle('');
+ setMediaOrg('');
+ setUrl('');
+ setIam('');
+ } catch (error) {
+ console.error('error:', error);
+ setIsLoading(false);
+ }
+ };
+
+ return (
+ Submit new article here
+
"Some good AI articles to read here
) -} \ No newline at end of file diff --git a/src/pages/country.js b/src/pages/country.js deleted file mode 100644 index 7f90beb..0000000 --- a/src/pages/country.js +++ /dev/null @@ -1,39 +0,0 @@ -import { Grid, Card, CardContent, Container, Typography, CardMedia } from '@mui/material'; -import * as React from 'react'; -import Copyright from '../components/Copyright'; -import SubmitArticle from '../components/SubmitArticle'; -import Accordion from '@mui/material/Accordion'; -import AccordionSummary from '@mui/material/AccordionSummary'; -import AccordionDetails from '@mui/material/AccordionDetails'; -import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; - - -export default function Country({countryData}) { - const [expanded, setExpanded] = React.useState(false); - - const handleChange = (panel) => (event, isExpanded) => { - setExpanded(isExpanded ? panel : false); - }; - - const emptyCountry =