Skip to content

Commit eb7682d

Browse files
committed
migration
1 parent 15397b0 commit eb7682d

File tree

8 files changed

+46
-87
lines changed

8 files changed

+46
-87
lines changed

front/src/pages/about/About.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

front/src/pages/about/About.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react';
2+
import { RouteComponentProps } from 'react-router-dom';
3+
4+
type Props = {} & RouteComponentProps<any, any>;
5+
6+
function About({}: Props) {
7+
return (
8+
<div>
9+
<h1>About</h1>
10+
</div>
11+
);
12+
}
13+
14+
About.displayName = 'About';
15+
16+
export default About;

front/src/pages/about/__tests__/About.test.js

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
import { shallow } from 'enzyme';
3+
import { MemoryRouter } from 'react-router';
4+
import About from '../About';
5+
6+
describe('About page', () => {
7+
it('renders as expected', () => {
8+
const props = {
9+
actions: {},
10+
};
11+
const component = shallow(
12+
<div>
13+
<MemoryRouter>
14+
<About {...props} />
15+
</MemoryRouter>
16+
</div>,
17+
);
18+
expect(component).toMatchSnapshot();
19+
});
20+
});

front/src/pages/about/__tests__/__snapshots__/About.test.js.snap

Lines changed: 0 additions & 11 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
// @flow
2-
3-
// #region imports
41
import { compose } from 'redux';
52
import About from './About';
63
import withEnterAnimation from '../../hoc/withEnterAnimation';
7-
// #endregion
84

95
export default compose(withEnterAnimation(/* no option yet */))(About);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
"@types/react": "^16.7.6",
8383
"@types/react-dom": "^16.0.9",
8484
"@types/react-motion": "^0.0.27",
85-
"@types/react-router": "^4.4.3",
85+
"@types/react-router": "^5.1.3",
8686
"@types/react-router-bootstrap": "^0.24.5",
87-
"@types/react-router-dom": "^4.3.1",
87+
"@types/react-router-dom": "^5.1.3",
8888
"@types/reactstrap": "^6.4.3",
8989
"@types/redux": "^3.6.0",
9090
"@types/styled-components": "^4.4.0",

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -983,10 +983,10 @@
983983
"@types/react" "*"
984984
"@types/react-router" "*"
985985

986-
"@types/react-router-dom@^4.3.1":
987-
version "4.3.1"
988-
resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-4.3.1.tgz#71fe2918f8f60474a891520def40a63997dafe04"
989-
integrity sha512-GbztJAScOmQ/7RsQfO4cd55RuH1W4g6V1gDW3j4riLlt+8yxYLqqsiMzmyuXBLzdFmDtX/uU2Bpcm0cmudv44A==
986+
"@types/react-router-dom@^5.1.3":
987+
version "5.1.3"
988+
resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.1.3.tgz#b5d28e7850bd274d944c0fbbe5d57e6b30d71196"
989+
integrity sha512-pCq7AkOvjE65jkGS5fQwQhvUp4+4PVD9g39gXLZViP2UqFiFzsEpB3PKf0O6mdbKsewSK8N14/eegisa/0CwnA==
990990
dependencies:
991991
"@types/history" "*"
992992
"@types/react" "*"
@@ -1000,10 +1000,10 @@
10001000
"@types/history" "*"
10011001
"@types/react" "*"
10021002

1003-
"@types/react-router@^4.4.3":
1004-
version "4.4.3"
1005-
resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-4.4.3.tgz#ea68b4021cb576866f83365b2201411537423d50"
1006-
integrity sha512-8GmjakEBFNCLJbpg9jtDp1EDvFP0VkIPPKBpVwmB3Q+9whFoHu8rluMUXUE5SoGkEQvVOtgJzWmUsJojNpFMQQ==
1003+
"@types/react-router@^5.1.3":
1004+
version "5.1.3"
1005+
resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.3.tgz#7c7ca717399af64d8733d8cb338dd43641b96f2d"
1006+
integrity sha512-0gGhmerBqN8CzlnDmSgGNun3tuZFXerUclWkqEhozdLaJtfcJRUTGkKaEKk+/MpHd1KDS1+o2zb/3PkBUiv2qQ==
10071007
dependencies:
10081008
"@types/history" "*"
10091009
"@types/react" "*"

0 commit comments

Comments
 (0)