Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed @Radium decorator in favour of manually wrapped class compone… #99

Open
wants to merge 1 commit into
base: edge-civictechto
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
}

@connect((state) => state.seed_comments_tweet)
@Radium
class ModerateCommentsSeed extends React.Component {
constructor(props) {
super(props)
Expand Down Expand Up @@ -134,6 +133,7 @@
})
}

ModerateCommentsSeed = Radium(ModerateCommentsSeed)

Check failure on line 136 in client-admin/src/components/conversation-admin/seed-tweet.js

View workflow job for this annotation

GitHub Actions / eslint

'ModerateCommentsSeed' is a class
export default ModerateCommentsSeed

/*
Expand Down
2 changes: 1 addition & 1 deletion client-report/src/COMPONENT_TEMPLATE.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import PropTypes from "prop-types";
// @connect(state => {
// return state.FOO;
// })
@Radium
class ComponentName extends React.Component {
constructor(props) {
super(props);
Expand Down Expand Up @@ -52,6 +51,7 @@ class ComponentName extends React.Component {
}
}

ComponentName = Radium(ComponentName);
export default ComponentName;

/*
Expand Down
2 changes: 1 addition & 1 deletion client-report/src/components/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Flex from "./flex";
import * as globals from "./globals";
import BarChart from "./barChart";

@Radium
class Comment extends React.Component {
static propTypes = {
dispatch: PropTypes.func,
Expand Down Expand Up @@ -74,6 +73,7 @@ class Comment extends React.Component {
}
}

Comment = Radium(Comment);
export default Comment;

// <p>{this.props.comment.demographics.gender}</p>
Expand Down
Loading