Skip to content

Commit 28bcc87

Browse files
author
fangedShadow
committed
Merge remote-tracking branch 'origin/development' into bhavpreet_create_choosing_village_map_frontend
2 parents 2d29d4c + 29462da commit 28bcc87

19 files changed

Lines changed: 541 additions & 579 deletions

package-lock.json

Lines changed: 22 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"axios": "^0.21.2",
1717
"axios-mock-adapter": "^1.22.0",
1818
"bootstrap": "^4.5.3",
19-
"chart.js": "^4.4.7",
19+
"chart.js": "^3.9.1",
2020
"chartjs-plugin-datalabels": "^2.2.0",
2121
"classnames": "^2.2.6",
2222
"d3": "^7.8.5",
@@ -30,7 +30,6 @@
3030
"html-to-pdfmake": "^2.0.6",
3131
"joi": "^14.0.6",
3232
"jwt-decode": "^2.2.0",
33-
"leaflet": "^1.9.4",
3433
"lodash": "^4.17.21",
3534
"lz-string": "^1.5.0",
3635
"moment": "^2.29.2",
@@ -50,8 +49,10 @@
5049
"react-html-parser": "^2.0.2",
5150
"react-icons": "^4.3.1",
5251
"react-input-range": "^1.3.0",
53-
"react-leaflet": "^4.2.1",
54-
"react-leaflet-cluster": "^2.1.0",
52+
"react-leaflet": ">=3.1.0 <3.2.0",
53+
"@react-leaflet/core": ">=1.0.0 <1.1.0",
54+
"leaflet": "1.7.1",
55+
"react-leaflet-cluster": "^1.0.4",
5556
"react-multi-select-component": "^4.0.2",
5657
"react-phone-input-2": "^2.14.0",
5758
"react-redux": "^7.2.0",
@@ -81,7 +82,7 @@
8182
"prestart": "npm run test",
8283
"postinstall": "node ./postinstall.js",
8384
"start": "react-scripts start",
84-
"build": "npm run postinstall && react-scripts build",
85+
"build": "npm run postinstall && set CI=false && react-scripts build",
8586
"test": "cross-env CI=true react-scripts test --env=jest-environment-jsdom-sixteen",
8687
"test:watch": " react-scripts test --env=jest-environment-jsdom-sixteen",
8788
"test:coverage": "cross-env CI=true react-scripts test --env=jest-environment-jsdom-sixteen --coverage",
@@ -94,7 +95,6 @@
9495
"browserslist": [
9596
">0.2%",
9697
"not dead",
97-
"not ie <= 11",
9898
"not op_mini all"
9999
],
100100
"devDependencies": {
@@ -126,6 +126,7 @@
126126
"node-fetch": "^3.1.1",
127127
"node-sass": "^8.0.0",
128128
"prettier": "^1.19.1",
129+
"react-error-overlay": "^6.0.9",
129130
"redux-mock-store": "^1.5.4",
130131
"sinon": "^7.3.2",
131132
"surge": "^0.21.6"

src/components/NotFound/NotFoundPage.jsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,29 @@
33
import React from 'react';
44
import { Link } from 'react-router-dom';
55
import { useSelector } from 'react-redux';
6-
import './NotFoundPage.css';
6+
import cn from 'classnames';
7+
import styles from './NotFoundPage.module.css';
78
import NotFoundImage from '../../assets/images/404Image1.png';
89
import NotFoundDarkImage from '../../assets/images/404ImageDarkMode1.png';
910

1011
function NotFoundPage() {
1112
const darkMode = useSelector(state => state.theme.darkMode);
1213

1314
return (
14-
<div className={`not-found-container ${darkMode ? 'dark-mode bg-black' : ''}`}>
15+
<div className={cn(styles.notFoundContainer, darkMode ? cn(
16+
styles.darkMode, styles.bgBlack
17+
) : '')}>
1518
<img
16-
className="not-found-image"
19+
className={styles.notFoundImage}
1720
src={darkMode ? NotFoundDarkImage : NotFoundImage}
1821
alt="Page Not Found"
1922
/>
20-
<div className="not-found-text">
23+
<div className={styles.notFoundText}>
2124
<h1>PAGE NOT FOUND</h1>
2225
<p>The rabbits have been nibbling the cables again...</p>
2326
<p>
2427
Maybe this will help{' '}
25-
<Link to="/" className="back-home-link">
28+
<Link to="/" className={styles.backHomeLink}>
2629
Home
2730
</Link>
2831
</p>
Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
* {
2-
padding: 0;
3-
margin: 0;
4-
box-sizing: border-box;
5-
}
6-
7-
.not-found-container {
1+
.notFoundContainer {
82
display: flex;
93
flex-direction: column;
104
justify-content: center;
@@ -15,56 +9,56 @@
159
background-color: #fff;
1610
}
1711

18-
.not-found-image {
12+
.notFoundImage {
1913
max-width: 100%;
2014
height: auto;
2115
/* margin-bottom:-20px; */
2216
}
2317

24-
.not-found-text {
18+
.notFoundText {
2519
padding: 0 20px;
2620
}
2721

28-
.not-found-text h1 {
22+
.notFoundText h1 {
2923
font-size: 2em;
3024
margin-bottom: 10px;
3125
}
3226

33-
.not-found-text p {
27+
.notFoundText p {
3428
font-size: 1.1em;
3529
margin-bottom: 10px;
3630
}
3731

38-
.back-home-link {
32+
.backHomeLink {
3933
color: #3293f9;
4034
cursor: pointer;
4135
text-decoration: underline;
4236
transition: background-color 0.3s;
4337
}
4438

45-
.back-home-link:hover {
39+
.backHomeLink:hover {
4640
background-color: transparent;
4741
}
4842

49-
.dark-mode {
43+
.darkMode {
5044
color: #f1f1f1;
5145

52-
.not-found-image {
46+
.notFoundImage {
5347
height: 38%;
5448
width: auto;
5549
}
5650
}
5751

58-
.bg-black {
52+
.bgBlack {
5953
background-color: #121212;
6054
}
6155

6256
@media (max-width: 768px) {
63-
.not-found-text h1 {
57+
.notFoundText h1 {
6458
font-size: 1.5em;
6559
}
6660

67-
.not-found-text p {
61+
.notFoundText p {
6862
font-size: 1em;
6963
}
70-
}
64+
}

0 commit comments

Comments
 (0)