diff --git a/config/webpack/webpack.dev.js b/config/webpack/webpack.dev.js
index b5d831906..a69693242 100644
--- a/config/webpack/webpack.dev.js
+++ b/config/webpack/webpack.dev.js
@@ -1,4 +1,6 @@
+const path = require('path');
const webpack = require('webpack');
+const UnusedWebpackPlugin = require('unused-webpack-plugin');
module.exports = {
mode: 'development',
@@ -13,5 +15,10 @@ module.exports = {
port: 3000,
writeToDisk: true,
},
- plugins: [new webpack.HotModuleReplacementPlugin()],
+ plugins: [
+ new webpack.HotModuleReplacementPlugin(),
+ new UnusedWebpackPlugin({
+ directories: [path.join(__dirname, '../../src')],
+ }),
+ ],
};
diff --git a/package.json b/package.json
index 23fd649eb..0e31fe8da 100644
--- a/package.json
+++ b/package.json
@@ -87,6 +87,7 @@
"styled-components": "^4.1.3",
"svg-inline-loader": "^0.8.0",
"terser-webpack-plugin": "^5.1.1",
+ "unused-webpack-plugin": "^2.4.0",
"url-loader": "^4.1.1",
"webpack": "~5.45.1",
"webpack-bundle-analyzer": "^3.0.3",
diff --git a/src/assets/cascade.jpg b/src/assets/cascade.jpg
deleted file mode 100644
index dff6bc10f..000000000
Binary files a/src/assets/cascade.jpg and /dev/null differ
diff --git a/src/assets/fluke.png b/src/assets/fluke.png
deleted file mode 100644
index 47b491fe3..000000000
Binary files a/src/assets/fluke.png and /dev/null differ
diff --git a/src/assets/fluke1.png b/src/assets/fluke1.png
deleted file mode 100644
index c489beba5..000000000
Binary files a/src/assets/fluke1.png and /dev/null differ
diff --git a/src/assets/fluke2.jpeg b/src/assets/fluke2.jpeg
deleted file mode 100644
index 796b669d9..000000000
Binary files a/src/assets/fluke2.jpeg and /dev/null differ
diff --git a/src/assets/graphic-identification.png b/src/assets/graphic-identification.png
deleted file mode 100644
index d4a813e4e..000000000
Binary files a/src/assets/graphic-identification.png and /dev/null differ
diff --git a/src/assets/graphic-opensource.png b/src/assets/graphic-opensource.png
deleted file mode 100644
index 194a6e7d2..000000000
Binary files a/src/assets/graphic-opensource.png and /dev/null differ
diff --git a/src/assets/graphic-searchexport.png b/src/assets/graphic-searchexport.png
deleted file mode 100644
index 6cc631c30..000000000
Binary files a/src/assets/graphic-searchexport.png and /dev/null differ
diff --git a/src/assets/logo-for-black-bg.png b/src/assets/logo-for-black-bg.png
deleted file mode 100644
index ae1d31161..000000000
Binary files a/src/assets/logo-for-black-bg.png and /dev/null differ
diff --git a/src/assets/logo-for-white-bg.png b/src/assets/logo-for-white-bg.png
deleted file mode 100644
index 47908e474..000000000
Binary files a/src/assets/logo-for-white-bg.png and /dev/null differ
diff --git a/src/assets/newsite.png b/src/assets/newsite.png
deleted file mode 100644
index d2c98372b..000000000
Binary files a/src/assets/newsite.png and /dev/null differ
diff --git a/src/assets/oops.jpg b/src/assets/oops.jpg
deleted file mode 100644
index 12e652a42..000000000
Binary files a/src/assets/oops.jpg and /dev/null differ
diff --git a/src/assets/splashvid.webm b/src/assets/splashvid.webm
deleted file mode 100644
index 30d7759aa..000000000
Binary files a/src/assets/splashvid.webm and /dev/null differ
diff --git a/src/assets/wildme-logo.svg b/src/assets/wildme-logo.svg
deleted file mode 100644
index 2c6a60d57..000000000
--- a/src/assets/wildme-logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/components/BigExpansionPanel.jsx b/src/components/BigExpansionPanel.jsx
deleted file mode 100644
index 600e6a773..000000000
--- a/src/components/BigExpansionPanel.jsx
+++ /dev/null
@@ -1,28 +0,0 @@
-import React from 'react';
-import { useTheme } from '@material-ui/core/styles';
-import Accordion from '@material-ui/core/Accordion';
-
-export default function BigExpansionPanel({
- children,
- style = {},
- ...rest
-}) {
- const theme = useTheme();
-
- return (
-
- {children}
-
- );
-}
diff --git a/src/components/Callout.jsx b/src/components/Callout.jsx
deleted file mode 100644
index b7d423696..000000000
--- a/src/components/Callout.jsx
+++ /dev/null
@@ -1,46 +0,0 @@
-import React from 'react';
-import Grid from '@material-ui/core/Grid';
-import Text from './Text';
-
-export default function Callout({
- title,
- description,
- actions,
- children,
-}) {
- return (
-
-
- {title}
-
-
-
- {description}
-
-
- {children}
-
- {actions}
-
-
- );
-}
diff --git a/src/components/icons/EncounterIcon.jsx b/src/components/icons/EncounterIcon.jsx
deleted file mode 100644
index 10d6bccd6..000000000
--- a/src/components/icons/EncounterIcon.jsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import React from 'react';
-import SvgIcon from '@material-ui/core/SvgIcon';
-
-export default function EncounterIcon({ ...porpoises }) {
- return (
-
-
-
- );
-}
diff --git a/src/components/icons/FemaleIcon.jsx b/src/components/icons/FemaleIcon.jsx
deleted file mode 100644
index c1a6a3f78..000000000
--- a/src/components/icons/FemaleIcon.jsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from 'react';
-import SvgIcon from '@material-ui/core/SvgIcon';
-
-export default function FemaleIcon(props) {
- return (
-
-
-
- );
-}
diff --git a/src/components/icons/MaleIcon.jsx b/src/components/icons/MaleIcon.jsx
deleted file mode 100644
index b64e81fcd..000000000
--- a/src/components/icons/MaleIcon.jsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from 'react';
-import SvgIcon from '@material-ui/core/SvgIcon';
-
-export default function MaleIcon(props) {
- return (
-
-
-
- );
-}
diff --git a/src/components/icons/MultipleIndividualsIcon.jsx b/src/components/icons/MultipleIndividualsIcon.jsx
deleted file mode 100644
index 1265dd6f9..000000000
--- a/src/components/icons/MultipleIndividualsIcon.jsx
+++ /dev/null
@@ -1,83 +0,0 @@
-import React from 'react';
-import {
- darken,
- lighten,
-} from '@material-ui/core/styles/colorManipulator';
-
-export default function MultipleIndividualsIcon({ color, ...rest }) {
- const darkColor = darken(color, 0.3);
- const lightColor = lighten(color, 0.3);
-
- return (
-
- );
-}
diff --git a/src/components/icons/MultipleSightingsIcon.jsx b/src/components/icons/MultipleSightingsIcon.jsx
deleted file mode 100644
index da5bc27c0..000000000
--- a/src/components/icons/MultipleSightingsIcon.jsx
+++ /dev/null
@@ -1,184 +0,0 @@
-import React from 'react';
-import { v4 as uuid } from 'uuid';
-import {
- darken,
- lighten,
-} from '@material-ui/core/styles/colorManipulator';
-
-const paint1Id = `radial1-${uuid()}`;
-const paint2Id = `radial2-${uuid()}`;
-const paint3Id = `radial3-${uuid()}`;
-const filterId = `shadow-${uuid()}`;
-
-export default function MultipleIndividualsIcon({ color, ...rest }) {
- const darkColor = darken(color, 0.3);
- const lightColor = lighten(color, 0.3);
-
- return (
-
- );
-}
diff --git a/src/components/icons/OneIndividualIcon.jsx b/src/components/icons/OneIndividualIcon.jsx
deleted file mode 100644
index d2dd8b8df..000000000
--- a/src/components/icons/OneIndividualIcon.jsx
+++ /dev/null
@@ -1,77 +0,0 @@
-import React from 'react';
-import {
- darken,
- lighten,
-} from '@material-ui/core/styles/colorManipulator';
-
-export default function OneIndividualIcon({ color, ...rest }) {
- const darkColor = darken(color, 0.3);
- const lightColor = lighten(color, 0.3);
-
- return (
-
- );
-}
diff --git a/src/components/icons/SexUnsureIcon.jsx b/src/components/icons/SexUnsureIcon.jsx
deleted file mode 100644
index c234ff138..000000000
--- a/src/components/icons/SexUnsureIcon.jsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from 'react';
-import SvgIcon from '@material-ui/core/SvgIcon';
-
-export default function SexUnsureIcon(props) {
- return (
-
-
-
- );
-}
diff --git a/src/components/svg/FemaleIcon.jsx b/src/components/svg/FemaleIcon.jsx
deleted file mode 100644
index bfa05e7b5..000000000
--- a/src/components/svg/FemaleIcon.jsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import React from 'react';
-
-export default function FemaleIcon(props) {
- return (
-
-
-
-
-
-
-
- );
-}
diff --git a/src/components/svg/MaleIcon.jsx b/src/components/svg/MaleIcon.jsx
deleted file mode 100644
index e38977e3c..000000000
--- a/src/components/svg/MaleIcon.jsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import React from 'react';
-
-export default function MaleIcon(props) {
- return (
-
-
-
-
-
-
-
- );
-}
diff --git a/src/components/svg/SexUnsureIcon.jsx b/src/components/svg/SexUnsureIcon.jsx
deleted file mode 100644
index 1f3bea4a4..000000000
--- a/src/components/svg/SexUnsureIcon.jsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React from 'react';
-
-export default function SexUnsureIcon(props) {
- return (
-
-
-
-
-
-
- );
-}
diff --git a/src/pages/bulkImport/TermsAndConditionsDialog.jsx b/src/pages/bulkImport/TermsAndConditionsDialog.jsx
deleted file mode 100644
index 24791d644..000000000
--- a/src/pages/bulkImport/TermsAndConditionsDialog.jsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from 'react';
-import DialogContent from '@material-ui/core/DialogContent';
-import Text from '../../components/Text';
-import StandardDialog from '../../components/StandardDialog';
-
-export default function TermsAndConditionsDialog({
- visible,
- onClose,
-}) {
- const termsAndConditions = 'Here are our terms!!!';
-
- return (
-
-
-
- {termsAndConditions}
-
-
-
- );
-}
diff --git a/src/utils/props.js b/src/utils/props.js
deleted file mode 100644
index fca263e57..000000000
--- a/src/utils/props.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import PropTypes from 'prop-types';
-
-export const ChildrenPropType = PropTypes.oneOfType([
- PropTypes.node,
- PropTypes.arrayOf(PropTypes.node),
- PropTypes.func,
- PropTypes.object,
-]);