Skip to content

Commit 6c8e81f

Browse files
committed
fix: Rollback React 16 features for backward compatibility
1 parent de0b5ca commit 6c8e81f

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

src/components/Card.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
import React, {Component, Fragment} from 'react'
2-
import PropTypes from 'prop-types'
3-
import {CardHeader, CardRightContent, CardTitle, Detail, Footer, MovableCardWrapper} from '../styles/Base'
4-
import Tag from './Tag'
5-
import DeleteButton from './widgets/DeleteButton'
6-
import {Draggable} from 'react-beautiful-dnd'
1+
import React, {Component} from 'react';
2+
import PropTypes from 'prop-types';
3+
import {
4+
CardHeader,
5+
CardRightContent,
6+
CardTitle,
7+
Detail,
8+
Footer,
9+
MovableCardWrapper,
10+
} from '../styles/Base';
11+
import Tag from './Tag';
12+
import DeleteButton from './widgets/DeleteButton';
13+
import {Draggable} from 'react-beautiful-dnd';
714

815
class Card extends Component {
916
removeCard = e => {
@@ -48,7 +55,7 @@ class Card extends Component {
4855
const draggablePropsStyle = dragProvided.draggableProps && dragProvided.draggableProps.style
4956
const dragStyle = this.getItemStyle(dragSnapshot.isDragging, draggablePropsStyle)
5057
return (
51-
<Fragment>
58+
<span>
5259
<MovableCardWrapper
5360
key={id}
5461
data-id={id}
@@ -64,7 +71,7 @@ class Card extends Component {
6471
{editable && !hideCardDeleteIcon && <DeleteButton onClick={this.removeCard} />}
6572
</MovableCardWrapper>
6673
{dragProvided.placeholder}
67-
</Fragment>
74+
</span>
6875
)
6976
}}
7077
</Draggable>

0 commit comments

Comments
 (0)