Remove server SHA

This commit is contained in:
Alan Friedman 2019-05-14 08:27:24 -04:00
parent eebcf5f94c
commit c6a63cb469
4 changed files with 2 additions and 9 deletions

View File

@ -189,7 +189,6 @@ terms, please stop using the Service.</p>
}
About.propTypes = {
serverSHA: PropTypes.string.isRequired,
roomId: PropTypes.string.isRequired,
}

View File

@ -259,7 +259,7 @@ export default class Home extends Component {
}
case 'About':
return {
component: <About roomId={this.props.roomId} serverSHA={this.props.serverSHA} />,
component: <About roomId={this.props.roomId} />,
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,
}

View File

@ -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,
}
}

View File

@ -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,