Skip to content

Commit

Permalink
Update Home.js and Home.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsc6955 committed Jan 24, 2024
1 parent e53fa51 commit ef739c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/paradox-app/build/src/app/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ function Home(props = {}) {
classList: "d-flex align-items-center",
children: [
(0, Button_1.default)({ message: "Home button clicked" }),
// Button({ message: "Remove pubsub subscription clicked", text: "Remove pubsub subscription", onClick: handleRemovePubsubSubscription }),
// Button({ message: "Add pubsub subscription clicked again", text: "Add pubsub subscription", onClick: () => Paradox.pubsub.subscribe("button-clicked", handlePubsubSubscription) }),
(0, Button_1.default)({ message: "Remove pubsub subscription clicked", text: "Remove pubsub subscription", onClick: handleRemovePubsubSubscription }),
(0, Button_1.default)({ message: "Add pubsub subscription clicked again", text: "Add pubsub subscription", onClick: () => penrose_paradox_1.default.pubsub.subscribe("button-clicked", handlePubsubSubscription) }),
]
}
},
Expand Down
4 changes: 2 additions & 2 deletions examples/paradox-app/src/app/pages/Home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default function Home(props: RouterProps = {}) {
classList: "d-flex align-items-center",
children: [
Button({ message: "Home button clicked" }),
// Button({ message: "Remove pubsub subscription clicked", text: "Remove pubsub subscription", onClick: handleRemovePubsubSubscription }),
// Button({ message: "Add pubsub subscription clicked again", text: "Add pubsub subscription", onClick: () => Paradox.pubsub.subscribe("button-clicked", handlePubsubSubscription) }),
Button({ message: "Remove pubsub subscription clicked", text: "Remove pubsub subscription", onClick: handleRemovePubsubSubscription }),
Button({ message: "Add pubsub subscription clicked again", text: "Add pubsub subscription", onClick: () => Paradox.pubsub.subscribe("button-clicked", handlePubsubSubscription) }),
]
}
},
Expand Down

0 comments on commit ef739c9

Please sign in to comment.