Skip to content

Commit

Permalink
fix broken link
Browse files Browse the repository at this point in the history
Summary:
The link to `'ShadowPropTypesIOS'` in `View` and `Image` docs is broken since RN0.29
Closes facebook#8814

Differential Revision: D3628978

Pulled By: lacker

fbshipit-source-id: b233e191d1e1e0731cd5b2fe33287d68aa12e041
  • Loading branch information
nihgwu authored and Facebook Github Bot 1 committed Jul 27, 2016
1 parent 5b4fb89 commit 28cf179
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions website/layout/AutodocsLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,17 @@ var ComponentDoc = React.createClass({
{(style.composes || []).map((name) => {
var link;
if (name === 'LayoutPropTypes') {
name = 'Flexbox';
name = 'Layout Props';
link =
<a href={'docs/' + slugify(name) + '.html#proptypes'}>{name}...</a>;
<a href={'docs/' + slugify(name) + '.html#props'}>{name}...</a>;
} else if (name === 'ShadowPropTypesIOS') {
name = 'Shadow Props';
link =
<a href={'docs/' + slugify(name) + '.html#props'}>{name}...</a>;
} else if (name === 'TransformPropTypes') {
name = 'Transforms';
link =
<a href={'docs/' + slugify(name) + '.html#proptypes'}>{name}...</a>;
<a href={'docs/' + slugify(name) + '.html#props'}>{name}...</a>;
} else {
name = name.replace('StylePropTypes', '');
link =
Expand Down

0 comments on commit 28cf179

Please sign in to comment.