Skip to content

Commit

Permalink
fix: Rollback React 16 features for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rcdexta committed Feb 4, 2018
1 parent de0b5ca commit 6c8e81f
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions src/components/Card.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import React, {Component, Fragment} from 'react'
import PropTypes from 'prop-types'
import {CardHeader, CardRightContent, CardTitle, Detail, Footer, MovableCardWrapper} from '../styles/Base'
import Tag from './Tag'
import DeleteButton from './widgets/DeleteButton'
import {Draggable} from 'react-beautiful-dnd'
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {
CardHeader,
CardRightContent,
CardTitle,
Detail,
Footer,
MovableCardWrapper,
} from '../styles/Base';
import Tag from './Tag';
import DeleteButton from './widgets/DeleteButton';
import {Draggable} from 'react-beautiful-dnd';

class Card extends Component {
removeCard = e => {
Expand Down Expand Up @@ -48,7 +55,7 @@ class Card extends Component {
const draggablePropsStyle = dragProvided.draggableProps && dragProvided.draggableProps.style
const dragStyle = this.getItemStyle(dragSnapshot.isDragging, draggablePropsStyle)
return (
<Fragment>
<span>
<MovableCardWrapper
key={id}
data-id={id}
Expand All @@ -64,7 +71,7 @@ class Card extends Component {
{editable && !hideCardDeleteIcon && <DeleteButton onClick={this.removeCard} />}
</MovableCardWrapper>
{dragProvided.placeholder}
</Fragment>
</span>
)
}}
</Draggable>
Expand Down

0 comments on commit 6c8e81f

Please sign in to comment.