Skip to content

Commit

Permalink
fix(react)!: misspelled struct name (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr authored May 29, 2024
1 parent e6f4f52 commit c937acb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions react/api.w
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ bring fs;

bring "./utils.w" as utils;

pub struct AppPros {
pub struct AppProps {
// The path to the React app root folder - can be absolute or relative to the wing folder.
projectPath: str;
// A port to start a local build of the React app on.
Expand All @@ -26,7 +26,7 @@ pub interface IApp {
}

pub class AppBase {
protected props: AppPros;
protected props: AppProps;

protected path: str;

Expand All @@ -36,7 +36,7 @@ pub class AppBase {
protected buildCommand: str;
protected buildDir: str;

new(props: AppPros) {
new(props: AppProps) {
this.path = fs.absolute(nodeof(this).app.entrypointDir, props.projectPath);

if !fs.exists(this.path) {
Expand Down
2 changes: 1 addition & 1 deletion react/lib.w
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub class App {

inner: appApi.IApp;

new(props: appApi.AppPros) {
new(props: appApi.AppProps) {
let target = util.env("WING_TARGET");

if target == "sim" {
Expand Down
4 changes: 2 additions & 2 deletions react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@winglibs/react",
"description": "React library for Wing",
"version": "0.0.3",
"version": "0.1.0",
"author": {
"name": "Meir Elbaz",
"email": "[email protected]"
Expand All @@ -24,4 +24,4 @@
"serve-static": "^1.15.0",
"tree-kill": "^1.2.2"
}
}
}
2 changes: 1 addition & 1 deletion react/sim.w
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ bring "./utils.w" as utils;
pub class AppSim extends api.AppBase impl api.IApp {
pub url: str;

new(props: api.AppPros) {
new(props: api.AppProps) {
super(props);

let state = new sim.State();
Expand Down
2 changes: 1 addition & 1 deletion react/tf-aws.w
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bring "./utils.w" as utils;
pub class AppTfAws extends api.AppBase impl api.IApp {
var website: cloud.Website;

new(props: api.AppPros) {
new(props: api.AppProps) {
super(props);

utils.Utils.execSync(this.buildCommand, this.env, this.path);
Expand Down

0 comments on commit c937acb

Please sign in to comment.