Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit 0a17af4

Browse files
committed
Rename MyBannerWrapper to ImportMyBanned in typescript example project.
1 parent ff8459a commit 0a17af4

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

examples/typescript-react-example/src/ImportMyBanner.bs.js

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/typescript-react-example/src/MyBannerWrapper.gen.tsx renamed to examples/typescript-react-example/src/ImportMyBanner.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const ReasonReact = require('reason-react/src/ReasonReact.js');
1010
// tslint:disable-next-line:interface-over-type-literal
1111
export type Props = {readonly show: boolean, readonly message?: message};
1212

13-
// In case of type error, check the type of 'make' in 'MyBannerWrapper.re' and the props of './MyBanner'.
13+
// In case of type error, check the type of 'make' in 'ImportMyBanner.re' and the props of './MyBanner'.
1414
export function MyBannerTypeChecked(props: Props) {
1515
return <MyBanner {...props}/>;
1616
}

examples/typescript-react-example/src/MyBannerWrapper.re renamed to examples/typescript-react-example/src/ImportMyBanner.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
type message = {text: string};
77

88
[@genType.import "./MyBanner"] /* Module with the JS component to be wrapped. */
9-
[@bs.module "./MyBannerWrapper.gen"] /* This must always be the name of the current module. */
9+
[@bs.module "./ImportMyBanner.gen"] /* This must always be the name of the current module. */
1010
/* The make function will be automatically generated from the types below. */
1111
external make:
1212
(~show: bool, ~message: option(message)=?, 'a) =>

examples/typescript-react-example/src/MyBannerWrapper.bs.js

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

examples/typescript-react-example/src/ReasonComponent.bs.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/typescript-react-example/src/ReasonComponent.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let make =
3232
)
3333
->ReasonReact.string
3434
}
35-
<MyBannerWrapper
35+
<ImportMyBanner
3636
show=true
3737
message={Some({text: "this is from ReasonComponent"})}
3838
/>

0 commit comments

Comments
 (0)