Skip to content

Commit a97c79d

Browse files
authored
Fix: multiple console errors (ashutosh1919#334)
* Fix: multiple console errors * Revert "Fix: multiple console errors" This reverts commit 34df827. * removed svg files
1 parent de5e125 commit a97c79d

File tree

9 files changed

+28
-26
lines changed

9 files changed

+28
-26
lines changed

src/components/button/Button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function Button({ text, className, href, newTab, theme }) {
1717
return (
1818
<div className={className}>
1919
<a
20-
class="main-button"
20+
className="main-button"
2121
href={href}
2222
target={newTab && "_blank"}
2323
style={{

src/components/socialMedia/SocialMedia.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ const IconWrapper = styled.span`
1616
export default function socialMedia(props) {
1717
return (
1818
<div className="social-media-div">
19-
{socialMediaLinks.map((media) => {
19+
{socialMediaLinks.map((media, i) => {
2020
return (
2121
<a
22+
key={i}
2223
href={media.link}
2324
className={`icon-button`}
2425
target="_blank"

src/components/topButton/TopButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function TopButton({ theme }) {
5959
onMouseEnter={() => onMouseEnter(theme.text, theme.body)}
6060
onMouseLeave={() => onMouseLeave(theme.body, theme.text)}
6161
>
62-
<i class="fas fa-arrow-up" id="arrow" aria-hidden="true" />
62+
<i className="fas fa-arrow-up" id="arrow" aria-hidden="true" />
6363
</div>
6464
);
6565
}

src/containers/skills/CloudInfraImg.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export default class CloudInfraImg extends Component {
2222
y2="120.78"
2323
gradientUnits="userSpaceOnUse"
2424
>
25-
<stop offset="0" stop-color="gray" stop-opacity="0.25" />
26-
<stop offset="0.54" stop-color="gray" stop-opacity="0.12" />
27-
<stop offset="1" stop-color="gray" stop-opacity="0.1" />
25+
<stop offset="0" stopColor="gray" stopOpacity="0.25" />
26+
<stop offset="0.54" stopColor="gray" stopOpacity="0.12" />
27+
<stop offset="1" stopColor="gray" stopOpacity="0.1" />
2828
</linearGradient>
2929
<linearGradient
3030
id="2394db48-9094-48a1-80b4-38413320a0c3"

src/containers/skills/DataScienceImg.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export default class DataScienceImg extends Component {
2828
height="272"
2929
fill="none"
3030
stroke={theme.text}
31-
stroke-miterlimit="10"
32-
stroke-width="2"
31+
strokeMiterlimit="10"
32+
strokeWidth="2"
3333
/>
3434
<path
3535
d="M352.468,237.56768A94,94,0,0,0,286,77.09967v94Z"
@@ -78,8 +78,8 @@ export default class DataScienceImg extends Component {
7878
height="272"
7979
fill="none"
8080
stroke={theme.text}
81-
stroke-miterlimit="10"
82-
stroke-width="2"
81+
strokeMiterlimit="10"
82+
strokeWidth="2"
8383
/>
8484
<rect
8585
x="175"
@@ -231,15 +231,15 @@ export default class DataScienceImg extends Component {
231231
height="272"
232232
fill="none"
233233
stroke={theme.text}
234-
stroke-miterlimit="10"
235-
stroke-width="2"
234+
strokeMiterlimit="10"
235+
strokeWidth="2"
236236
/>
237237
<polyline
238238
points="556 227.5 556 435.5 757 435.5"
239239
fill="none"
240240
stroke={theme.text}
241-
stroke-miterlimit="10"
242-
stroke-width="2"
241+
strokeMiterlimit="10"
242+
strokeWidth="2"
243243
/>
244244
<rect
245245
x="567"

src/containers/skills/DesignImg.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export default class DesignImg extends Component {
2222
y2="679.56"
2323
gradientUnits="userSpaceOnUse"
2424
>
25-
<stop offset="0" stop-color="gray" stop-opacity="0.25" />
26-
<stop offset="0.54" stop-color="gray" stop-opacity="0.12" />
27-
<stop offset="1" stop-color="gray" stop-opacity="0.1" />
25+
<stop offset="0" stopColor="gray" stopOpacity="0.25" />
26+
<stop offset="0.54" stopColor="gray" stopOpacity="0.12" />
27+
<stop offset="1" stopColor="gray" stopOpacity="0.1" />
2828
</linearGradient>
2929
<linearGradient
3030
id="72a3db62-0825-44ad-a640-19754e14ba99"

src/containers/skills/SkillSection.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class SkillSection extends Component {
2323
const theme = this.props.theme;
2424
return (
2525
<div>
26-
{skills.data.map((skill) => {
26+
{skills.data.map((skill, i) => {
2727
return (
28-
<div className="skills-main-div">
28+
<div key={i} className="skills-main-div">
2929
<Fade left duration={2000}>
3030
<div className="skills-image-div">
3131
{/* <img
@@ -47,9 +47,10 @@ class SkillSection extends Component {
4747
</Fade>
4848
<Fade right duration={2000}>
4949
<div>
50-
{skill.skills.map((skillSentence) => {
50+
{skill.skills.map((skillSentence, i) => {
5151
return (
5252
<p
53+
key={i}
5354
className="subTitle skills-text"
5455
style={{ color: theme.secondaryText }}
5556
>

src/pages/education/EducationImg.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export default class EducationImg extends Component {
2323
gradientTransform="translate(3217.53309 1009.65784) rotate(90)"
2424
gradientUnits="userSpaceOnUse"
2525
>
26-
<stop offset="0" stop-color="gray" stop-opacity="0.25" />
27-
<stop offset="0.53514" stop-color="gray" stop-opacity="0.12" />
28-
<stop offset="1" stop-color="gray" stop-opacity="0.1" />
26+
<stop offset="0" stopColor="gray" stopOpacity="0.25" />
27+
<stop offset="0.53514" stopColor="gray" stopOpacity="0.12" />
28+
<stop offset="1" stopColor="gray" stopOpacity="0.1" />
2929
</linearGradient>
3030
</defs>
3131
<title>Graduation</title>

src/pages/projects/ProjectsImg.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export default class ProjectsImg extends Component {
2222
y2="522.9"
2323
gradientUnits="userSpaceOnUse"
2424
>
25-
<stop offset="0" stop-color="gray" stop-opacity="0.25" />
26-
<stop offset="0.54" stop-color="gray" stop-opacity="0.12" />
27-
<stop offset="1" stop-color="gray" stop-opacity="0.1" />
25+
<stop offset="0" stopColor="gray" stopOpacity="0.25" />
26+
<stop offset="0.54" stopColor="gray" stopOpacity="0.12" />
27+
<stop offset="1" stopColor="gray" stopOpacity="0.1" />
2828
</linearGradient>
2929
</defs>
3030
<title>mind map</title>

0 commit comments

Comments
 (0)