From c6a63cb469cf4d855d95620c94d2d1eb13c97c07 Mon Sep 17 00:00:00 2001
From: Alan Friedman
Date: Tue, 14 May 2019 08:27:24 -0400
Subject: [PATCH] Remove server SHA
---
client/src/components/About/index.js | 1 -
client/src/components/Home/index.js | 3 +--
client/src/containers/Home/index.js | 1 -
client/src/reducers/app.js | 6 +-----
4 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/client/src/components/About/index.js b/client/src/components/About/index.js
index 0805806..3727222 100644
--- a/client/src/components/About/index.js
+++ b/client/src/components/About/index.js
@@ -189,7 +189,6 @@ terms, please stop using the Service.
}
About.propTypes = {
- serverSHA: PropTypes.string.isRequired,
roomId: PropTypes.string.isRequired,
}
diff --git a/client/src/components/Home/index.js b/client/src/components/Home/index.js
index ce46dad..898ccc4 100644
--- a/client/src/components/Home/index.js
+++ b/client/src/components/Home/index.js
@@ -259,7 +259,7 @@ export default class Home extends Component {
}
case 'About':
return {
- component: ,
+ component: ,
title: 'About',
}
case 'Settings':
@@ -451,7 +451,6 @@ Home.propTypes = {
faviconCount: PropTypes.number.isRequired,
soundIsEnabled: PropTypes.bool.isRequired,
toggleSoundEnabled: PropTypes.func.isRequired,
- serverSHA: PropTypes.string.isRequired,
toggleSocketConnected: PropTypes.func.isRequired,
socketConnected: PropTypes.bool.isRequired,
}
diff --git a/client/src/containers/Home/index.js b/client/src/containers/Home/index.js
index 814a8a2..ed65e95 100644
--- a/client/src/containers/Home/index.js
+++ b/client/src/containers/Home/index.js
@@ -36,7 +36,6 @@ const mapStateToProps = (state) => {
joining: state.room.joining,
faviconCount: state.app.unreadMessageCount,
soundIsEnabled: state.app.soundIsEnabled,
- serverSHA: state.app.serverSHA,
socketConnected: state.app.socketConnected,
}
}
diff --git a/client/src/reducers/app.js b/client/src/reducers/app.js
index fb5427d..7787621 100644
--- a/client/src/reducers/app.js
+++ b/client/src/reducers/app.js
@@ -4,17 +4,13 @@ const initialState = {
windowIsFocused: true,
unreadMessageCount: 0,
soundIsEnabled: true,
- serverSHA: '',
socketConnected: false,
}
const app = (state = initialState, action) => {
switch (action.type) {
case 'FETCH_CREATE_HANDSHAKE_SUCCESS':
- return {
- ...state,
- serverSHA: action.payload.json.sha,
- }
+ return state;
case 'OPEN_MODAL':
return {
...state,