Skip to content

Commit

Permalink
Fix spell editing
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Baranowski committed Dec 10, 2018
1 parent 961a115 commit decfc53
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/app.global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

.transition-position {
transition: left 0.2s ease-out;
transition: right 0.2s ease-out;
}

.no-select {
Expand Down
2 changes: 1 addition & 1 deletion app/form/CampFire.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const CampFire = ({onClick}) => (
<svg id="startLongRest" onClick={onClick} style={{
position: 'fixed',
top: 10,
left: 10,
right: 10,
cursor: 'pointer',
width: 50,
height: 50,
Expand Down
3 changes: 1 addition & 2 deletions app/form/CampfireContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, {Component} from 'react';
import CampFire from "./CampFire";
import {Button} from "semantic-ui-react";
import {connect} from "react-redux";
import "./CampfireContainer.scss";

class CampfireContainer extends Component {
state = {
Expand Down Expand Up @@ -69,7 +68,7 @@ class CampfireContainer extends Component {
display: 'flex',
position: 'fixed',
top: 75,
left: this.state.showConfirmation ? 10 : -400,
right: this.state.showConfirmation ? 10 : -400,
zIndex: 1,
padding: 10,
background: 'white',
Expand Down
Empty file removed app/form/CampfireContainer.scss
Empty file.
2 changes: 1 addition & 1 deletion app/home-page/character-sheet/spells/spellsReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default (state = initialState, action) => {
...state.chosenSpells,
[level]: {
...state.chosenSpells[level],
[action.spell.id]: action.spell
[action.spell.id]: { ...state.chosenSpells[level][action.spell.id], ...action.spell }
}
};

Expand Down

0 comments on commit decfc53

Please sign in to comment.