Skip to content

Commit e8db69b

Browse files
author
Krit
committed
update Link style in Component dir
1 parent f9e4d68 commit e8db69b

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/components/CategoryList/CategoryList.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default class CategoryList extends React.Component {
6161
(this.props.linkPrefix || '') + (c.link || id)
6262
);
6363
return (
64-
<Link title={c.name} to={link} className={className} key={id} >
64+
<Link title={c.name} to={{ pathname: link }} className={className} key={id} >
6565
<span>{count}</span>
6666
<span>{c.name}</span>
6767
</Link>

src/components/FileTree/FileTree.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default class FileTree extends React.Component {
7474
<Link
7575
key={'f_' + f}
7676
className={[styles.file, isCurrent ? styles.current : ''].join(' ')}
77-
to={this.props.linkPrefix + path}>
77+
to={{ pathname: this.props.linkPrefix + path }}>
7878
{f}
7979
</Link>
8080
);

src/components/Sidebar/AppsMenu.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ let AppsMenu = ({ apps, current, height, onSelect }) => (
2323
return null;
2424
}
2525
return (
26-
<Link to={html`/apps/${app.slug}/browser`} key={app.slug} className={styles.menuRow}>
26+
<Link to={{ pathname: html`/apps/${app.slug}/browser` }} key={app.slug} className={styles.menuRow}>
2727
{app.name}
2828
<AppBadge production={app.production} />
2929
</Link>

src/components/Sidebar/SidebarHeader.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import styles from 'components/Sidebar/Sidebar.scss';
1313

1414
let SidebarHeader = ({}) =>
1515
<div className={styles.header}>
16-
<Link className={styles.logo} to='/apps'>
16+
<Link className={styles.logo} to={{ pathname: '/apps' }}>
1717
<Icon width={28} height={28} name='infinity' fill={'#ffffff'} />
1818
</Link>
1919
<Link to='/apps'>

src/components/Sidebar/SidebarSection.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ let SidebarSection = ({ active, children, name, link, icon, style }) => {
2323
<div className={classes.join(' ')}>
2424
{active ?
2525
<div style={style} className={styles.section_header}>{iconContent}{name}</div> :
26-
<Link style={style} className={styles.section_header} to={link || ''}>{iconContent}{name}</Link>}
26+
<Link style={style} className={styles.section_header} to={{ pathname: link || '' }}>{iconContent}{name}</Link>}
2727

2828
{children ? <div className={styles.section_contents}>{children}</div> : null}
2929
</div>

src/components/Sidebar/SidebarSubItem.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let SidebarSubItem = ({ active, name, action, link, children }) => {
2828
<div>
2929
<Link
3030
className={styles.subitem}
31-
to={link}>
31+
to={{ pathname: link }}>
3232
{name}
3333
</Link>
3434
</div>

0 commit comments

Comments
 (0)