diff --git a/app/javascript/chat/ChatChannelSettings/ChatChannelSettings.jsx b/app/javascript/chat/ChatChannelSettings/ChatChannelSettings.jsx
index 5015dc4d8..23dd34be5 100644
--- a/app/javascript/chat/ChatChannelSettings/ChatChannelSettings.jsx
+++ b/app/javascript/chat/ChatChannelSettings/ChatChannelSettings.jsx
@@ -18,7 +18,6 @@ import ChatChannelSettingsSection from './ChatChannelSettingsSection';
export default class ChatChannelSettings extends Component {
static propTypes = {
- modFaqEmail: PropTypes.string.isRequired,
handleLeavingChannel: PropTypes.func.isRequired,
activeMembershipId: PropTypes.number.isRequired,
};
@@ -382,8 +381,6 @@ export default class ChatChannelSettings extends Component {
invitationLink,
} = this.state;
- const { modFaqEmail } = this.props;
-
if (!chatChannel) {
return null;
}
@@ -393,7 +390,6 @@ export default class ChatChannelSettings extends Component {
{displaySettings ? (
(
@@ -75,7 +74,6 @@ const ChatChannelSettingsSection = ({
/>
@@ -87,7 +85,6 @@ ChatChannelSettingsSection.propTypes = {
activeMemberships: PropTypes.isRequired,
pendingMemberships: PropTypes.isRequired,
requestedMemberships: PropTypes.isRequired,
- modFaqEmail: PropTypes.string.isRequired,
invitationUsernames: PropTypes.string.isRequired,
channelDescription: PropTypes.string.isRequired,
channelDiscoverable: PropTypes.bool.isRequired,
diff --git a/app/javascript/chat/ChatChannelSettings/ModFaqSection.jsx b/app/javascript/chat/ChatChannelSettings/ModFaqSection.jsx
index 17fe92d18..5922d8aa5 100644
--- a/app/javascript/chat/ChatChannelSettings/ModFaqSection.jsx
+++ b/app/javascript/chat/ChatChannelSettings/ModFaqSection.jsx
@@ -9,14 +9,14 @@ const ModFaqSection = ({ email, currentMembershipRole }) => {
return (
diff --git a/app/javascript/chat/__tests__/chat.test.jsx b/app/javascript/chat/__tests__/chat.test.jsx
index f6466e1dd..1375350cc 100644
--- a/app/javascript/chat/__tests__/chat.test.jsx
+++ b/app/javascript/chat/__tests__/chat.test.jsx
@@ -169,7 +169,7 @@ describe('', () => {
it('should have no a11y violations', async () => {
fetch.mockResponse(getMockResponse());
const { container } = render(
- ,
+ ,
);
const results = await axe(container);
@@ -179,7 +179,7 @@ describe('', () => {
it('should render expanded', () => {
fetch.mockResponse(getMockResponse());
const { getByTestId, getByText, getByLabelText, getByRole } = render(
- ,
+ ,
);
const chat = getByTestId('chat');
@@ -212,7 +212,7 @@ describe('', () => {
it('should collapse and expand chat channels properly', async () => {
fetch.mockResponse(getMockResponse());
const { queryByText } = render(
- ,
+ ,
);
// // chat channels
diff --git a/app/javascript/chat/__tests__/chatChannelSettings.test.jsx b/app/javascript/chat/__tests__/chatChannelSettings.test.jsx
index 2fcef4627..027e6baff 100644
--- a/app/javascript/chat/__tests__/chatChannelSettings.test.jsx
+++ b/app/javascript/chat/__tests__/chatChannelSettings.test.jsx
@@ -11,7 +11,6 @@ describe('', () => {
const { container } = render(
,
);
const results = await axe(container);
@@ -23,7 +22,6 @@ describe('', () => {
const { container } = render(
,
);
diff --git a/app/javascript/chat/__tests__/content.test.jsx b/app/javascript/chat/__tests__/content.test.jsx
index e9ba65417..72aca9cfd 100644
--- a/app/javascript/chat/__tests__/content.test.jsx
+++ b/app/javascript/chat/__tests__/content.test.jsx
@@ -39,7 +39,6 @@ describe('', () => {
const { container } = render(
,
);
const results = await axe(container);
@@ -52,7 +51,6 @@ describe('', () => {
const { queryByText, queryByTitle } = render(
,
);
diff --git a/app/javascript/chat/chat.jsx b/app/javascript/chat/chat.jsx
index b26c973f4..1f1e5e513 100644
--- a/app/javascript/chat/chat.jsx
+++ b/app/javascript/chat/chat.jsx
@@ -49,7 +49,6 @@ const WIDE_WIDTH_LIMIT = 1600;
export default class Chat extends Component {
static propTypes = {
- modFaqEmail: PropTypes.string.isRequired,
pusherKey: PropTypes.number.isRequired,
chatChannels: PropTypes.string.isRequired,
chatOptions: PropTypes.string.isRequired,
@@ -1468,7 +1467,6 @@ export default class Chat extends Component {
}
renderActiveChatChannel = (channelHeader) => {
const { state, props } = this;
- const { modFaqEmail } = props;
return (
@@ -1533,7 +1531,6 @@ export default class Chat extends Component {
-
+
);
}
}
-const Display = ({ modFaqEmail, resource }) => {
+const Display = ({ resource }) => {
switch (resource.type_of) {
case 'loading-user':
return ;
@@ -112,7 +111,6 @@ const Display = ({ modFaqEmail, resource }) => {
case 'chat-channel-setting':
return (
, document.getElementById('snack-zone'));
- render(, root);
+ render(, root);
const placeholder = document.getElementById('chat_placeholder');