Skip to content

Commit

Permalink
Minor Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
binoy14 committed Feb 11, 2017
1 parent eb0b206 commit 59af339
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
12 changes: 3 additions & 9 deletions Readme.MD
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,7 @@ A component with full size image and with text either inside the image or under
> This component was inspired from [Shoutem UI](https://github.com/shoutem/ui) by [Shoutem](https://github.com/shoutem). Check out [Shoutem](http://shoutem.github.io/) if you haven't already!
#### Featured Tile
![screen shot 2017-01-15 at 9 50 15 pm](https://cloud.githubusercontent.com/assets/6476108/21969491/beea4630-db6c-11e6-8913-7cc8813e35d6.png)
```
<Tile
Expand All @@ -1246,10 +1247,8 @@ A component with full size image and with text either inside the image or under
caption="Some Caption Text"
/>
```
![screen shot 2017-01-15 at 9 50 15 pm](https://cloud.githubusercontent.com/assets/6476108/21969491/beea4630-db6c-11e6-8913-7cc8813e35d6.png)
#### Featured Tile with Icon
![screen shot 2017-01-15 at 9 50 22 pm](https://cloud.githubusercontent.com/assets/6476108/21969581/6004e408-db6d-11e6-9379-556a0c5e967a.png)
```
<Tile
Expand All @@ -1258,10 +1257,8 @@ A component with full size image and with text either inside the image or under
featured
/>
```
![screen shot 2017-01-15 at 9 50 22 pm](https://cloud.githubusercontent.com/assets/6476108/21969581/6004e408-db6d-11e6-9379-556a0c5e967a.png)
#### Tile with Icon
![screen shot 2017-01-15 at 9 50 34 pm](https://cloud.githubusercontent.com/assets/6476108/21969683/fce073f0-db6d-11e6-8d03-6e42c15627a9.png)
```
<Tile
Expand All @@ -1275,9 +1272,6 @@ A component with full size image and with text either inside the image or under
</View>
</Tile>
```
![screen shot 2017-01-15 at 9 50 34 pm](https://cloud.githubusercontent.com/assets/6476108/21969683/fce073f0-db6d-11e6-8d03-6e42c15627a9.png)
### Tile Props
| prop | default | type | description |
Expand Down
4 changes: 2 additions & 2 deletions src/tile/FeaturedTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const FeaturedTile = ({
overlayContainerStyle && overlayContainerStyle,
]}
>
{(icon) ? <Icon {...icon} /> : null}
{icon && <Icon {...icon} />}
<Text
h4
style={[
Expand Down Expand Up @@ -130,4 +130,4 @@ FeaturedTile.propTypes = {
height: PropTypes.number,
};

export default FeaturedTile;
export default FeaturedTile;

0 comments on commit 59af339

Please sign in to comment.