Skip to content

Commit

Permalink
Fix invalid DOM property . Did you mean ? error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbachtiger committed Oct 21, 2022
1 parent 59f0ddd commit 9afca9c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 20 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ game publisher and developer fields not clickable - fixed by change as to type i

image not displaying for reviews page - needed to modifiy reviews serializer to include image for field

Warning: Invalid DOM property `class`. Did you mean `className`? - didn't add className rather class for favourite navbar

## Known Bugs

## Technologies Used
Expand Down
2 changes: 1 addition & 1 deletion src/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const NavBar = () => {
className={styles.NavLink}
activeClassName={styles.Active}
>
<i class="fas fa-bookmark"></i>Favourites
<i className="fas fa-bookmark"></i>Favourites
</NavLink>
<NavLink to="/" className={styles.NavLink} onClick={handleSignOut}>
<i className="fas fa-sign-out-alt"></i>Sign out
Expand Down
4 changes: 2 additions & 2 deletions src/pages/about/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function About() {
aria-label="Visit my Github page (opens in a new tab)"
className="p-3"
>
<i class="fab fa-github"> GitHub</i>
<i className="fab fa-github"> GitHub</i>
</a>

<a
Expand All @@ -59,7 +59,7 @@ function About() {
rel="noreferrer"
aria-label="Visit my LinkedIn page (opens in a new tab)"
>
<i class="fab fa-linkedin">LinkedIn</i>
<i className="fab fa-linkedin">LinkedIn</i>
</a>
<hr />
<p>
Expand Down
6 changes: 0 additions & 6 deletions src/pages/events/EventCreateForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const EventCreateForm = () => {
city: "",
address: "",
price: "",
created_on: "",
modified_on: "",
event_link: "",
});

Expand All @@ -32,8 +30,6 @@ const EventCreateForm = () => {
city,
address,
price,
created_on,
modified_on,
event_link,
} = eventData;

Expand Down Expand Up @@ -64,8 +60,6 @@ const EventCreateForm = () => {
formData.append("city", city);
formData.append("address", address);
formData.append("price", price);
formData.append("created_on", created_on);
formData.append("modified_on", modified_on);
formData.append("event_link", event_link);

try {
Expand Down
10 changes: 0 additions & 10 deletions src/pages/events/EventEditForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ const EventEditForm = () => {
city: "",
address: "",
price: "",
created_on: "",
modified_on: "",
event_link: "",
});

Expand All @@ -33,8 +31,6 @@ const EventEditForm = () => {
city,
address,
price,
created_on,
modified_on,
event_link,
} = eventData;

Expand All @@ -56,8 +52,6 @@ const EventEditForm = () => {
city,
address,
price,
created_on,
modified_on,
event_link,
is_owner,
} = data;
Expand All @@ -71,8 +65,6 @@ const EventEditForm = () => {
city,
address,
price,
created_on,
modified_on,
event_link,
})
: history.push("/");
Expand Down Expand Up @@ -109,8 +101,6 @@ const EventEditForm = () => {
formData.append("city", city);
formData.append("address", address);
formData.append("price", price);
formData.append("created_on", created_on);
formData.append("modified_on", modified_on);
formData.append("event_link", event_link);

try {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const Post = (props) => {
</Link>
<Card.Body>
{title && <Card.Title className="text-center">{title}</Card.Title>}
{game_medium && <Card.Text>Game Medium: {game_medium}</Card.Text>}
{game_medium && <Card.Text>Category: {game_medium}</Card.Text>}
{description && <Card.Text>{description}</Card.Text>}

<div>
Expand Down

0 comments on commit 9afca9c

Please sign in to comment.