Skip to content

Commit d83ea70

Browse files
committed
migration
1 parent bd8ca10 commit d83ea70

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed

front/src/hoc/withEnterAnimation/styled/AnimatedDiv.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import styled, { keyframes, css, ThemeProps } from 'styled-components';
1+
import styled, { keyframes, css } from 'styled-components';
22

33
const fadeIn = keyframes`
44
from {
@@ -10,12 +10,7 @@ const fadeIn = keyframes`
1010
}
1111
`;
1212

13-
type Props = {
14-
readonly theme: ThemeProps<any>;
15-
readonly viewEnter: boolean;
16-
};
17-
18-
const AnimatedDiv = styled.div<Props>`
13+
export const AnimatedDiv = styled.div`
1914
${({ viewEnter }) =>
2015
viewEnter &&
2116
css`

front/src/hoc/withEnterAnimation/withEnterAnimation.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function withEnterAnimation() {
1616
const { ...passProps } = this.props;
1717

1818
return (
19+
// @ts-ignore
1920
<AnimatedDiv viewEnter>
2021
<BaseComponent {...passProps} />
2122
</AnimatedDiv>
@@ -24,6 +25,7 @@ function withEnterAnimation() {
2425
}
2526

2627
/* eslint-disable no-process-env */
28+
// @ts-ignore
2729
if (process.env.NODE_ENV !== 'production') {
2830
// HOC would obfuscate component name, this trick is helpful for dev (we don't care in production)
2931
(WithEnterAnimation as any).displayName = wrapDisplayName(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"@types/react-router-dom": "^4.3.1",
8888
"@types/reactstrap": "^6.4.3",
8989
"@types/redux": "^3.6.0",
90-
"@types/styled-components": "^4.1.2",
90+
"@types/styled-components": "^4.4.0",
9191
"babel-core": "^7.0.0-bridge.0",
9292
"babel-eslint": "^10.0.1",
9393
"babel-jest": "^23.6.0",

yarn.lock

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,14 @@
958958
dependencies:
959959
"@types/react" "*"
960960

961+
"@types/react-native@*":
962+
version "0.60.23"
963+
resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.60.23.tgz#9270f91bbff822a1571feece56cd260f0a1b2831"
964+
integrity sha512-hLRCWKNni/e6KEXSNtexXCg0u7CnHla6G6yeZYTMOlyG/bLE41GeLxP4dXJw1hyDsXJYN00Wc3Apr2XQ2TW1LA==
965+
dependencies:
966+
"@types/prop-types" "*"
967+
"@types/react" "*"
968+
961969
"@types/react-router-bootstrap@^0.24.5":
962970
version "0.24.5"
963971
resolved "https://registry.yarnpkg.com/@types/react-router-bootstrap/-/react-router-bootstrap-0.24.5.tgz#9257ba3dfb01cda201aac9fa05cde3eb09ea5b27"
@@ -1053,13 +1061,13 @@
10531061
"@types/express-serve-static-core" "*"
10541062
"@types/mime" "*"
10551063

1056-
"@types/styled-components@^4.1.2":
1057-
version "4.1.2"
1058-
resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-4.1.2.tgz#3219dd745cc2638ade5b2f6c0d771a32fdfc855f"
1059-
integrity sha512-Mi2E14EAd3tOhM2C2nJeracSI0u0EqCaMvtywsfuPnOSUeM3dIhc4mFT5s2ByKN7mV140EJ1AoCMeJq/txpsaQ==
1064+
"@types/styled-components@^4.4.0":
1065+
version "4.4.0"
1066+
resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-4.4.0.tgz#15a3d59533fd3a5bd013db4a7c4422ec542c59d2"
1067+
integrity sha512-QFl+w3hQJNHE64Or3PXMFpC3HAQDiuQLi5o9m1XPEwYWfgCZtAribO5ksjxnO8U0LG8Parh0ESCgVxo4VfxlHg==
10601068
dependencies:
1061-
"@types/node" "*"
10621069
"@types/react" "*"
1070+
"@types/react-native" "*"
10631071
csstype "^2.2.0"
10641072

10651073
"@webassemblyjs/ast@1.3.1":

0 commit comments

Comments
 (0)