Skip to content

Commit

Permalink
Fixed react warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mansisindhu committed Dec 22, 2021
1 parent 7392998 commit 939da03
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 112 deletions.
6 changes: 3 additions & 3 deletions src/components/CarouselMain/CarouselMain.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const CarouselMain = () => {
>
{carouselData.map((el, i) => {
return (
<Link to={`/games/${el?._id}`}>
<div key={i}>
<Link to={`/games/${el?._id}`} key={i}>
<div>
<img src={el?.thumbnail} alt="" className="image" />
<div className="legend" id="legend">
{el?.price.discount > 0 ? (
Expand Down Expand Up @@ -76,7 +76,7 @@ const CarouselMain = () => {
<div className={styles.bars}>
{carouselData.map((el, i) => {
return (
<div className={styles.bar}>
<div className={styles.bar} key={i}>
<img src={el?.thumbnail} alt="" />
<p>{el?.title}</p>
</div>
Expand Down
26 changes: 0 additions & 26 deletions src/components/LandingPageComponents/MainCard/MainCard.jsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/LandingPageComponents/MainCard/index.js

This file was deleted.

68 changes: 0 additions & 68 deletions src/components/LandingPageComponents/MainCard/mainCard.module.css

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Link } from "react-router-dom";

import TopCategorySlider from "../../TopCategorySlider";
import MainCard from "../MainCard";
import styles from "./mainCardContainer.module.css";
import GameCard from "../../BrowsePageComponents/GameCard";

Expand All @@ -13,8 +12,8 @@ const MainCardContainer = ({ data, title }) => {
<div className={styles.container}>
{data.map((el, i) => {
return (
<div className={styles.card}>
<Link key={i} to={`/games/${el._id}`}>
<div key={i} className={styles.card}>
<Link to={`/games/${el._id}`}>
<GameCard
image={el.cardImage}
title={el.title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const MiniCardContainer = ({ data, heading }) => {

{data.map((el, i) => {
return (
<Link to={`/games/${el._id}`}>
<div key={i} className={styles.card}>
<Link key={i} to={`/games/${el._id}`}>
<div className={styles.card}>
<MiniCard
banner={el.cardImage}
title={el.title}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import styles from "./cardDetails.module.css";
import FormGroup from "@mui/material/FormGroup";
import FormControlLabel from "@mui/material/FormControlLabel";
import Checkbox from "@mui/material/Checkbox";
import TextField from "@mui/material/TextField";

import styles from "./cardDetails.module.css";

const CardDetails = () => {
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SignupOptionsPage/SignupOptionsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const SignupOptionsPage = () => {
<p className={styles.text}>SIGN IN WITH XBOX LIVE</p>
</div>
<div className={styles.option}>
<img src="/social-icons/Playstation_Network.svg" />
<img src="/social-icons/Playstation_Network.svg" alt="logo-img" />
<p className={styles.text}>SIGN IN WITH PLAYSTATION NETWORK</p>
</div>
<div className={styles.option}>
Expand Down
5 changes: 2 additions & 3 deletions src/pages/WishlistPage/WishlistPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const WishListPage = () => {
<NotificationBar />

{wishlist.length ? (
wishlist.map((el) => {
wishlist.map((el, i) => {
return (
<Link to={`/games/${el._id}`}>
<Link key={i} to={`/games/${el._id}`}>
<Card
id={el._id}
title={el.title}
Expand All @@ -53,4 +53,3 @@ const WishListPage = () => {
};

export default WishListPage;

1 comment on commit 939da03

@vercel
Copy link

@vercel vercel bot commented on 939da03 Dec 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.