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

feat(util): export propTypes from util folder #14

Merged
merged 1 commit into from
Apr 7, 2018
Merged
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
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.