Skip to content
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const columns = [
{name: 'producer', width: '230px'}
];

export default class Example extends PureComponent {
export default class Example extends Component {
constructor(props) {
super(props);

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unity-table",
"version": "0.0.1",
"version": "0.0.2",
"description": "Table component for React",
"main": "dist/index.js",
"scripts": {
Expand All @@ -9,6 +9,9 @@
"build": "webpack"
},
"author": "frux <qdinov@gmail.com>",
"contributors": [
"Anton Konev <info@antonkonev.com> (https://antonkonev.com/)"
],
"license": "ISC",
"dependencies": {
"prop-types": "^15.5.10",
Expand All @@ -30,7 +33,7 @@
"postcss-cssnext": "^3.0.2",
"postcss-loader": "^2.0.6",
"postcss-nested": "^2.0.4",
"raw-loader": "^0.5.1",
"raw-loader": "^1.0.0-beta.0",
"react-dom": "^15.6.1",
"storybook-readme": "^3.0.5",
"style-loader": "^0.18.2",
Expand Down
4 changes: 2 additions & 2 deletions src/SimpleTable/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {PureComponent} from 'react';
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {CLASSES} from '../constants';
import {Table, Thead, Tbody, Th, Tr, Td} from '../index';
Expand All @@ -10,7 +10,7 @@ const thClassName = (columnName, sort) => {
return `${CLASSES.th}_sortable ${isSorting ? ` ${CLASSES.th}_sort_${sortDir}` : ''}`;
};

export default class SimpleTable extends PureComponent {
export default class SimpleTable extends Component {
getHandleSortClick(field) {
return () => {
const {sort, onSortChange} = this.props;
Expand Down
4 changes: 2 additions & 2 deletions stories/SimpleTable/Sorting.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {PureComponent} from 'react';
import React, {Component} from 'react';
import {SimpleTable} from '../../dist';
import {films as tableHead} from '../helpers/tableHead';
import {films as mapData} from '../helpers/mapData';
Expand All @@ -13,7 +13,7 @@ const columns = [
{name: 'producer', width: '230px'}
];

export default class Example extends PureComponent {
export default class Example extends Component {
constructor(props) {
super(props);

Expand Down