Skip to content

Commit

Permalink
remove unnecessary propTypes file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jag96 committed Aug 5, 2021
1 parent 8280b67 commit 994f44b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
11 changes: 0 additions & 11 deletions src/components/CollapsibleSection/CollapsibleSectionPropTypes.js

This file was deleted.

10 changes: 9 additions & 1 deletion src/components/CollapsibleSection/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
import React from 'react';
import {View, TouchableOpacity} from 'react-native';
import PropTypes from 'prop-types';
import Collapsible from './Collapsible';
import Text from '../Text';
import propTypes from './CollapsibleSectionPropTypes';
import styles from '../../styles/styles';
import Icon from '../Icon';
import {DownArrow, UpArrow} from '../Icon/Expensicons';

const propTypes = {
/** Title of the Collapsible section */
title: PropTypes.string.isRequired,

/** Children to display inside the Collapsible component */
children: PropTypes.node.isRequired,
};

class CollapsibleSection extends React.Component {
constructor(props) {
super(props);
Expand Down

0 comments on commit 994f44b

Please sign in to comment.