Skip to content

Commit

Permalink
feat(util): export propTypes from util folder
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianoforlenza authored and navarroaxel committed Apr 7, 2018
1 parent bc13cd8 commit fed3bd5
Show file tree
Hide file tree
Showing 11 changed files with 872 additions and 346 deletions.
4 changes: 2 additions & 2 deletions src/Table/TableCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {Text} from 'react-native';
import {Col} from '@indec/react-native-commons';
import {at, isFunction} from 'lodash';

import columnPropType from './columnPropType';
import datumPropType from './datumPropType';
import columnPropType from '../util/columnPropType';
import datumPropType from '../util/datumPropType';
import styles from './styles';

const TableCell = ({datum, column}) => {
Expand Down
4 changes: 2 additions & 2 deletions src/Table/TableCheckBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import React from 'react';
import {CheckBox} from 'react-native-elements';

import columnPropType from './columnPropType';
import datumPropType from './datumPropType';
import columnPropType from '../util/columnPropType';
import datumPropType from '../util/datumPropType';

const TableCheckBox = ({column, datum}) => (
<CheckBox
Expand Down
2 changes: 1 addition & 1 deletion src/Table/TableHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import {View} from 'react-native';
import {Col, TextStrong} from '@indec/react-native-commons';

import columnPropType from './columnPropType';
import columnPropType from '../util/columnPropType';
import styles from './styles';

const TableHeader = ({columns}) => (
Expand Down
4 changes: 2 additions & 2 deletions src/Table/TableIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {Icon} from 'react-native-elements';
import {getFontAwesome} from '@indec/react-native-commons/util';
import {isFunction} from 'lodash';

import columnPropType from './columnPropType';
import datumPropType from './datumPropType';
import columnPropType from '../util/columnPropType';
import datumPropType from '../util/datumPropType';

const TableIcon = ({column, datum}) => (
<Icon
Expand Down
4 changes: 2 additions & 2 deletions src/Table/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import React from 'react';
import PropTypes from 'prop-types';
import {Row} from '@indec/react-native-commons';

import columnPropType from './columnPropType';
import columnPropType from '../util/columnPropType';
import TableCell from './TableCell';
import datumPropType from './datumPropType';
import datumPropType from '../util/datumPropType';
import styles from './styles';

const TableRow = ({datum, columns}) => (
Expand Down
4 changes: 2 additions & 2 deletions src/Table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {ScrollView} from 'react-native';
import {isEmpty} from 'lodash';
import {Col, Row} from '@indec/react-native-commons';

import columnPropType from './columnPropType';
import datumPropType from './datumPropType';
import columnPropType from '../util/columnPropType';
import datumPropType from '../util/datumPropType';
import TableRow from './TableRow';
import TableHeader from './TableHeader';

Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions src/util/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import columnPropType from './columnPropType';
import datumPropType from './datumPropType';

export {columnPropType};
export {datumPropType};
5 changes: 5 additions & 0 deletions util/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@indec/react-native-table/util",
"private": true,
"main": "../src/util/index.js"
}
1,186 changes: 851 additions & 335 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit fed3bd5

Please sign in to comment.