diff --git a/gatsby-node.js b/gatsby-node.js
index 8c05d8b5e..16d1564dd 100644
--- a/gatsby-node.js
+++ b/gatsby-node.js
@@ -1,4 +1,3 @@
-const siteConfig = require('./site-config');
const { createFilePath } = require('gatsby-source-filesystem');
const appInsights = require('applicationinsights');
const WebpackAssetsManifest = require('webpack-assets-manifest');
@@ -239,13 +238,6 @@ exports.createPages = async ({ graphql, actions }) => {
});
});
});
-
- const profilePage = require.resolve('./src/pages/profile.js');
- createPage({
- path: `${siteConfig.pathPrefix}/people/`,
- matchPath: `${siteConfig.pathPrefix}/people/:gitHubUsername`,
- component: profilePage,
- });
};
exports.sourceNodes = async ({ actions, createNodeId }) => {
diff --git a/site-config.js b/site-config.js
index 2f2e4f34c..ac7344299 100644
--- a/site-config.js
+++ b/site-config.js
@@ -6,7 +6,6 @@ const titles = {
'/user/': `User Rules`,
'/orphaned/': `Orphaned Rules`,
'/archived/': `Archived Rules`,
- '/profile/': `Profile`,
};
module.exports = {
diff --git a/src/components/comments-not-connected/comments-not-connected.js b/src/components/comments-not-connected/comments-not-connected.js
deleted file mode 100644
index 1e8723c1a..000000000
--- a/src/components/comments-not-connected/comments-not-connected.js
+++ /dev/null
@@ -1,100 +0,0 @@
-import React, { useEffect, useState } from 'react';
-import PropTypes from 'prop-types';
-
-import {
- GetDisqusUser,
- ConnectUserCommentsAccount,
- DisqusError,
-} from '../../services/apiService';
-import { useAuthService } from '../../services/authService';
-import DisqusIcon from '-!svg-react-loader!../../images/disqusIcon.svg';
-
-import { useAuth0 } from '@auth0/auth0-react';
-import useAppInsights from '../../hooks/useAppInsights';
-
-const CommentsNotConnected = ({ userCommentsConnected, setState, state }) => {
- const [disqusUsername, setDisqusUsername] = useState();
- const [errorMessage, setErrorMessage] = useState(null);
-
- const { user } = useAuth0();
- const { fetchIdToken } = useAuthService();
-
- const { trackException } = useAppInsights();
-
- function connectAccounts() {
- if (disqusUsername) {
- GetDisqusUser(disqusUsername)
- .then(async (success) => {
- if (success.code == DisqusError.InvalidArg) {
- setErrorMessage('Username does not exist');
- }
- const jwt = await fetchIdToken();
- ConnectUserCommentsAccount(
- {
- UserId: user.sub,
- CommentsUserId: success.response.id,
- },
- jwt
- )
- .then((response) => {
- setState(state + 1);
- if (response == 409) {
- setErrorMessage(
- 'Another user is already using this comments account'
- );
- }
- })
- .catch((err) => {
- trackException(err, 3);
- });
- })
- .catch((err) => {
- trackException(err, 3);
- });
- }
- }
-
- useEffect(() => {}, [userCommentsConnected, state]);
- return (
-
-
-
-
-
setDisqusUsername(e.target.value)}
- />
-
- {/* eslint-disable-next-line jsx-a11y/anchor-has-content */}
-
-
Forgot username?
-
-
{errorMessage}
-
-
-
-
-
- );
-};
-
-CommentsNotConnected.propTypes = {
- userCommentsConnected: PropTypes.bool,
- setState: PropTypes.func,
- state: PropTypes.number,
-};
-
-export default CommentsNotConnected;
diff --git a/src/components/dropdown-card/dropdown-card.js b/src/components/dropdown-card/dropdown-card.js
index 24fed0dd6..a091fede6 100644
--- a/src/components/dropdown-card/dropdown-card.js
+++ b/src/components/dropdown-card/dropdown-card.js
@@ -1,10 +1,9 @@
import React from 'react';
-import { navigate } from 'gatsby';
import PropTypes from 'prop-types';
import { useAuth0 } from '@auth0/auth0-react';
import GitHubIcon from '-!svg-react-loader!../../images/github.svg';
-const DropdownCard = ({ setOpen }) => {
+const DropdownCard = () => {
const { logout, user } = useAuth0();
return (
<>
@@ -20,15 +19,6 @@ const DropdownCard = ({ setOpen }) => {
-