Skip to content

Move to rrtr #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# react-router-bootstrap
Integration between [React Router](https://github.com/rackt/react-router) and [React-Bootstrap](https://github.com/react-bootstrap/react-bootstrap).
Integration between [rrtr](https://github.com/taion/rrtr) and [React-Bootstrap](https://github.com/react-bootstrap/react-bootstrap).

[![Build Status](https://travis-ci.org/react-bootstrap/react-router-bootstrap.svg?branch=master)](https://travis-ci.org/react-bootstrap/react-router-bootstrap)
[![npm version](https://badge.fury.io/js/react-router-bootstrap.svg)](http://badge.fury.io/js/react-router-bootstrap)
Expand All @@ -20,16 +20,14 @@ As with React Router's `Link`, returning `false` from an `onClick` handler on `L

## Installation

**Note:** Releases from v0.20.0 onward only support React Router v2.x. For React Router 1.x support, use v0.19.3 or earlier.

```
npm install react-router-bootstrap
```

You will also want to have React Router and React-Bootstrap.

```
npm install react-router react-bootstrap
npm install rrtr react-bootstrap
```

## Contributing
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"homepage": "https://github.com/react-bootstrap/react-router-bootstrap",
"peerDependencies": {
"react": ">=0.14.0",
"react-router": ">=2.0.0"
"rrtr": ">=2.1.2"
},
"devDependencies": {
"babel": "^5.8.38",
Expand Down Expand Up @@ -72,9 +72,9 @@
"react": "^15.0.0",
"react-bootstrap": "^0.28.5",
"react-dom": "^15.0.0",
"react-router": "^2.0.1",
"release-script": "^1.0.2",
"rimraf": "^2.5.2",
"rrtr": "^2.1.2",
"shelljs": "^0.6.0",
"sinon": "^1.17.3",
"sinon-chai": "^2.8.0",
Expand Down
4 changes: 2 additions & 2 deletions src/LinkContainer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This is largely taken from react-router/lib/Link.
// This is largely taken from rrtr/lib/Link.

import React from 'react';
import { Link } from 'react-router';
import Link from 'rrtr/lib/Link';

export default class LinkContainer extends React.Component {
constructor(props, context) {
Expand Down
2 changes: 1 addition & 1 deletion tests/IndexLinkContainer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import * as ReactBootstrap from 'react-bootstrap';
import ReactDOM from 'react-dom';
import { createMemoryHistory, IndexRoute, Route, Router } from 'react-router';
import { createMemoryHistory, IndexRoute, Route, Router } from 'rrtr';

import IndexLinkContainer from '../src/IndexLinkContainer';

Expand Down
2 changes: 1 addition & 1 deletion tests/LinkContainer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import * as ReactBootstrap from 'react-bootstrap';
import ReactDOM from 'react-dom';
import { createMemoryHistory, Route, Router } from 'react-router';
import { createMemoryHistory, Route, Router } from 'rrtr';

import LinkContainer from '../src/LinkContainer';

Expand Down
2 changes: 1 addition & 1 deletion tests/visual/ButtonVisual.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar';
import Button from 'react-bootstrap/lib/Button';
import { Link } from 'react-router';
import { Link } from 'rrtr';

import LinkContainer from '../../src/LinkContainer';

Expand Down
2 changes: 1 addition & 1 deletion tests/visual/Home.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Link } from 'react-router';
import { Link } from 'rrtr';

export default () => (
<div>
Expand Down
2 changes: 1 addition & 1 deletion tests/visual/ListGroupItemVisual.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import ListGroup from 'react-bootstrap/lib/ListGroup';
import ListGroupItem from 'react-bootstrap/lib/ListGroupItem';
import { Link } from 'react-router';
import { Link } from 'rrtr';

import LinkContainer from '../../src/LinkContainer';

Expand Down
2 changes: 1 addition & 1 deletion tests/visual/MenuItemVisual.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar';
import MenuItem from 'react-bootstrap/lib/MenuItem';
import SplitButton from 'react-bootstrap/lib/SplitButton';
import { Link } from 'react-router';
import { Link } from 'rrtr';

import LinkContainer from '../../src/LinkContainer';

Expand Down
2 changes: 1 addition & 1 deletion tests/visual/NavItemVisual.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import Nav from 'react-bootstrap/lib/Nav';
import NavItem from 'react-bootstrap/lib/NavItem';
import { Link } from 'react-router';
import { Link } from 'rrtr';

import LinkContainer from '../../src/LinkContainer';

Expand Down
3 changes: 1 addition & 2 deletions tests/visual/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import Grid from 'react-bootstrap/lib/Grid';
import ReactDOM from 'react-dom';
import { IndexRedirect, Route, Router } from 'react-router';
import hashHistory from 'react-router/lib/hashHistory';
import { hashHistory, IndexRedirect, Route, Router } from 'rrtr';

import ButtonVisual from './ButtonVisual';
import Home from './Home';
Expand Down
8 changes: 4 additions & 4 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export default {
}
},
{
'react-router': {
'rrtr': {
root: 'ReactRouter',
commonjs2: 'react-router',
commonjs: 'react-router',
amd: 'react-router'
commonjs2: 'rrtr',
commonjs: 'rrtr',
amd: 'rrtr'
}
}
],
Expand Down