+
)
});
return (
- {dogList}
+ {applicationList}
);
}
diff --git a/src/components/icon.png b/src/components/icon.png
new file mode 100644
index 0000000..81b5af6
Binary files /dev/null and b/src/components/icon.png differ
diff --git a/src/components/nav.js b/src/components/nav.js
index 92fecdc..d04a7fd 100644
--- a/src/components/nav.js
+++ b/src/components/nav.js
@@ -6,7 +6,7 @@ import UserContext from '../contexts/user';
function Nav(props) {
const context = useContext(UserContext);
- //Change the new dog section for admins only!!
+ //Change the new application section for admins only!!
return (
<>
@@ -16,7 +16,7 @@ function Nav(props) {
Register
Messages
Account
-
Add Dog
+
Add Application
Logout
>
diff --git a/src/components/newDog.js b/src/components/newApplication.js
similarity index 86%
rename from src/components/newDog.js
rename to src/components/newApplication.js
index d9ae760..e660120 100644
--- a/src/components/newDog.js
+++ b/src/components/newApplication.js
@@ -14,7 +14,7 @@ const tailFormItemLayout = {
wrapperCol: { xs: { span: 24, offset: 0 }, sm: { span: 16, offset: 6 } },
};
-class NewDog extends React.Component {
+class NewApplication extends React.Component {
constructor(props) {
super(props);
@@ -47,10 +47,10 @@ class NewDog extends React.Component {
data.append('upload', this.state.imageURL)
data.append('name', this.state.name)
data.append('about', this.state.about)
- axios.post("https://animal-hello-3000.codio-box.uk/api/v1/dogs", data, {
+ axios.post("https://animal-hello-3000.codio-box.uk/api/v1/applications", data, {
auth: {
- username: 'joe',
- password: '1234'
+ username: 'andre',
+ password: '12345'
},
headers: {
'content-type': 'multipart/form-data'
@@ -64,7 +64,7 @@ class NewDog extends React.Component {
render(){
return (
@@ -82,4 +82,4 @@ class NewDog extends React.Component {
}
-export default NewDog;
\ No newline at end of file
+export default NewApplication;
\ No newline at end of file
diff --git a/src/components/upload.js b/src/components/upload.js
index 5048f1c..d80b297 100644
--- a/src/components/upload.js
+++ b/src/components/upload.js
@@ -37,7 +37,7 @@ function Uploader(props) {
Upload
This is a bare-bones upload interface. It is simply to illustrate connecting to a multipart-form aware API route.
-
You will need to wire any realistic upload component into one of your app's forms (such as for dogs or users).
+
You will need to wire any realistic upload component into one of your app's forms (such as for applications or users).
In addition you will need to ensure that the upload is correctly authenticated if appropriate, using the 'headers' prop.