mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 10:49:02 +00:00
Remove server SHA
This commit is contained in:
parent
eebcf5f94c
commit
c6a63cb469
@ -189,7 +189,6 @@ terms, please stop using the Service.</p>
|
|||||||
}
|
}
|
||||||
|
|
||||||
About.propTypes = {
|
About.propTypes = {
|
||||||
serverSHA: PropTypes.string.isRequired,
|
|
||||||
roomId: PropTypes.string.isRequired,
|
roomId: PropTypes.string.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ export default class Home extends Component {
|
|||||||
}
|
}
|
||||||
case 'About':
|
case 'About':
|
||||||
return {
|
return {
|
||||||
component: <About roomId={this.props.roomId} serverSHA={this.props.serverSHA} />,
|
component: <About roomId={this.props.roomId} />,
|
||||||
title: 'About',
|
title: 'About',
|
||||||
}
|
}
|
||||||
case 'Settings':
|
case 'Settings':
|
||||||
@ -451,7 +451,6 @@ Home.propTypes = {
|
|||||||
faviconCount: PropTypes.number.isRequired,
|
faviconCount: PropTypes.number.isRequired,
|
||||||
soundIsEnabled: PropTypes.bool.isRequired,
|
soundIsEnabled: PropTypes.bool.isRequired,
|
||||||
toggleSoundEnabled: PropTypes.func.isRequired,
|
toggleSoundEnabled: PropTypes.func.isRequired,
|
||||||
serverSHA: PropTypes.string.isRequired,
|
|
||||||
toggleSocketConnected: PropTypes.func.isRequired,
|
toggleSocketConnected: PropTypes.func.isRequired,
|
||||||
socketConnected: PropTypes.bool.isRequired,
|
socketConnected: PropTypes.bool.isRequired,
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,6 @@ const mapStateToProps = (state) => {
|
|||||||
joining: state.room.joining,
|
joining: state.room.joining,
|
||||||
faviconCount: state.app.unreadMessageCount,
|
faviconCount: state.app.unreadMessageCount,
|
||||||
soundIsEnabled: state.app.soundIsEnabled,
|
soundIsEnabled: state.app.soundIsEnabled,
|
||||||
serverSHA: state.app.serverSHA,
|
|
||||||
socketConnected: state.app.socketConnected,
|
socketConnected: state.app.socketConnected,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,17 +4,13 @@ const initialState = {
|
|||||||
windowIsFocused: true,
|
windowIsFocused: true,
|
||||||
unreadMessageCount: 0,
|
unreadMessageCount: 0,
|
||||||
soundIsEnabled: true,
|
soundIsEnabled: true,
|
||||||
serverSHA: '',
|
|
||||||
socketConnected: false,
|
socketConnected: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
const app = (state = initialState, action) => {
|
const app = (state = initialState, action) => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case 'FETCH_CREATE_HANDSHAKE_SUCCESS':
|
case 'FETCH_CREATE_HANDSHAKE_SUCCESS':
|
||||||
return {
|
return state;
|
||||||
...state,
|
|
||||||
serverSHA: action.payload.json.sha,
|
|
||||||
}
|
|
||||||
case 'OPEN_MODAL':
|
case 'OPEN_MODAL':
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user