Skip to content

Commit

Permalink
Merge pull request #11 from fergarrui/create-versions-dropdown
Browse files Browse the repository at this point in the history
fix sidebar style
  • Loading branch information
fergarrui authored Jun 2, 2019
2 parents 3ed4a34 + 582038f commit 38a649d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/client/components/Main/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { connect } from 'react-redux';
import { CSSTransitionGroup } from 'react-transition-group';

import { showLoadingMessage, hideLoadingMessage, showErrorMessage } from '../Store/Actions.js';

import baseurl, { baseUrl } from '../../utils/baseUrl';

import { baseUrl } from '../../utils/baseUrl';
import Editor from '../Editor/Editor';
import SideBar from '../SideBar/SideBar';
import Tab from '../Tab/Tab';
Expand All @@ -33,7 +31,7 @@ const mapStateToProps = state => {

const mapDispatchToProps = dispatch => {
return {
loadingMessageOn: () => dispatch(showLoadingMessage()),
loadingMessageOn: message => dispatch(showLoadingMessage(message)),
loadingMessageOff: () => dispatch(hideLoadingMessage()),
errorMessageOn: message => dispatch(showErrorMessage(message)),
}
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/Main/Main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
&__side-bar {
position: absolute;
top: 30px;
left: -262px;
left: -380px;
transition: left 0.2s;
pointer-events: none;
}
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/Store/Reducers/Reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const versions = (state = { versions: [], versionNumber: null, hasFetched
case ActionTypes.ADD_VERSION:
return { ...state, versions: action.version, hasFetched: true };
case ActionTypes.GET_VERSION_NUM:
return { ...state, versions: action.version, versionNumber: action.versionNum, hasFetched: false };
return { ...state, versionNumber: action.versionNum, hasFetched: false };
default: return state;
}
}
2 changes: 1 addition & 1 deletion src/client/components/TopNavBar/TopNavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class TopNavBar extends React.Component {

render() {
const { settingsVisible, versionsVisible } = this.state;
const { versions, fetchRequestStatus, children, versionNumber, hasFetched, postedVersions } = this.props;
const { versions, fetchRequestStatus, children, versionNumber, hasFetched } = this.props;

return (
<div className={styles['top-navbar']}>
Expand Down

0 comments on commit 38a649d

Please sign in to comment.