Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d12a3cc

Browse filesBrowse files
Sean PrashadSean Prashad
Sean Prashad
authored and
Sean Prashad
committed
Update react-scripts from 3.4.4 to 4.0.0
Ejected the create-react-app and fixed 2 security vulnerabilities
1 parent 11c1f9e commit d12a3cc
Copy full SHA for d12a3cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

42 files changed

+12203
-8194
lines changed

‎package-lock.json

Copy file name to clipboardExpand all lines: package-lock.json
+12,187-8,183Lines changed: 12187 additions & 8183 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react-ga": "^2.7.0",
1919
"react-icons": "^3.11.0",
2020
"react-markdown": "^4.3.1",
21-
"react-scripts": "^3.4.4",
21+
"react-scripts": "4.0.0",
2222
"react-scroll": "^1.8.0",
2323
"react-table": "^7.6.3",
2424
"react-test-renderer": "^16.14.0",
@@ -28,7 +28,7 @@
2828
},
2929
"devDependencies": {
3030
"babel-eslint": "^10.0.3",
31-
"eslint": "^6.8.0",
31+
"eslint": "^7.11.0",
3232
"eslint-config-airbnb": "^18.2.1",
3333
"eslint-config-prettier": "^6.15.0",
3434
"eslint-plugin-import": "^2.22.1",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎src/components/Acknowledgements/index.js

Copy file name to clipboardExpand all lines: src/components/Acknowledgements/index.js
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ import {
1212
} from 'reactstrap';
1313
import { Event } from '../Shared/Tracking';
1414

15-
import Blind from '../../images/Blind.png';
16-
import Educative from '../../images/Educative.png';
17-
import Hackernoon from '../../images/Hackernoon.png';
18-
1915
import './styles.scss';
2016

17+
const imagePath = `${process.env.PUBLIC_URL}/assets/images/`;
18+
const Blind = `${imagePath}Blind.png`;
19+
const Educative = `${imagePath}Educative.png`;
20+
const Hackernoon = `${imagePath}Hackernoon.png`;
21+
2122
const Acknowledgements = () => {
2223
return (
2324
<Container className="acknowledgements">

‎src/components/Table/filters.js

Copy file name to clipboardExpand all lines: src/components/Table/filters.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function CreateDropDownListHelper(options, filterValue, setFilter) {
1010
>
1111
<option value="">All</option>
1212
{options.map((option, idx) => (
13-
<option key={idx} value={option}>
13+
<option key={`${idx + option}`} value={option}>
1414
{option}
1515
</option>
1616
))}
@@ -19,8 +19,10 @@ function CreateDropDownListHelper(options, filterValue, setFilter) {
1919
}
2020

2121
export function DefaultColumnFilter({
22-
column: { filterValue, preFilteredRows, setFilter, id },
22+
// eslint-disable-next-line react/prop-types
23+
column: { filterValue, preFilteredRows, setFilter },
2324
}) {
25+
// eslint-disable-next-line react/prop-types
2426
const count = preFilteredRows.length;
2527

2628
return (

‎src/components/Table/index.js

Copy file name to clipboardExpand all lines: src/components/Table/index.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react/jsx-props-no-spreading */
12
import React, { useState, useEffect } from 'react';
23
import {
34
Table as ReactTable,
@@ -22,7 +23,7 @@ import questions from '../../data';
2223
import 'react-toggle/style.css';
2324
import './styles.scss';
2425

25-
const images = require.context('../../icons', true);
26+
const iconPath = `${process.env.PUBLIC_URL}/assets/icons/`;
2627

2728
const Table = () => {
2829
const data = React.useMemo(() => questions, []);
@@ -213,6 +214,8 @@ const Table = () => {
213214
{
214215
Header: () => {
215216
return (
217+
// eslint-disable-next-line
218+
// eslint-disable-next-line jsx-a11y/label-has-associated-control
216219
<label htmlFor="pattern-toggle">
217220
<span>Show/Hide Patterns </span>
218221
<Toggle
@@ -284,11 +287,10 @@ const Table = () => {
284287
accessor: 'companies',
285288
Cell: cellInfo => {
286289
const companies = cellInfo.row.original.companies.map(company => {
287-
const icon = images(`./${company}.png`);
288290
return (
289291
<img
290292
key={company}
291-
src={icon}
293+
src={`${iconPath}${company}.png`}
292294
alt={company}
293295
data-tip={company}
294296
/>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.