mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Fix links to Flexbox / ShadowPropTypesIOS / Transforms in styles
Reviewed By: svcscm Differential Revision: D2938201 fb-gh-sync-id: c20790fa69984f0b592c48fbfdca74f3dfc9d14d shipit-source-id: c20790fa69984f0b592c48fbfdca74f3dfc9d14d
This commit is contained in:
parent
4237a27ec9
commit
c6a8fb977d
@ -175,15 +175,15 @@ var ComponentDoc = React.createClass({
|
||||
if (name === 'LayoutPropTypes') {
|
||||
name = 'Flexbox';
|
||||
link =
|
||||
<a href={slugify(name) + '.html#proptypes'}>{name}...</a>;
|
||||
<a href={'docs/' + slugify(name) + '.html#proptypes'}>{name}...</a>;
|
||||
} else if (name === 'TransformPropTypes') {
|
||||
name = 'Transforms';
|
||||
link =
|
||||
<a href={slugify(name) + '.html#proptypes'}>{name}...</a>;
|
||||
<a href={'docs/' + slugify(name) + '.html#proptypes'}>{name}...</a>;
|
||||
} else {
|
||||
name = name.replace('StylePropTypes', '');
|
||||
link =
|
||||
<a href={slugify(name) + '.html#style'}>{name}#style...</a>;
|
||||
<a href={'docs/' + slugify(name) + '.html#style'}>{name}#style...</a>;
|
||||
}
|
||||
return (
|
||||
<div className="prop" key={name}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user