Skip to content

Commit

Permalink
Fix runtime warnings on AipNow template (#365)
Browse files Browse the repository at this point in the history
Co-authored-by: Eran Witkon <[email protected]>
  • Loading branch information
ewitkon and ewitkon authored May 31, 2024
1 parent f6d8850 commit e660cbd
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-radios-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@osdk/create-app": patch
---

Fix runtime warnings on AipNow template
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ function CreateProjectDialog({
<Dialog
isOpen={isOpen}
buttons={[
<button disabled={isCreating} onClick={handleSubmit}>
<button disabled={isCreating} onClick={handleSubmit} key="create">
Create project
</button>,
<button disabled={isCreating} onClick={onClose}>
<button disabled={isCreating} onClick={onClose} key="cancel">
Cancel
</button>,
]}
Expand Down
4 changes: 2 additions & 2 deletions examples/example-tutorial-todo-app/src/CreateTaskDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ function CreateTaskDialog({ project, isOpen, onClose }: CreateTaskDialogProps) {
<Dialog
isOpen={isOpen}
buttons={[
<button disabled={isCreating} onClick={handleSubmit}>
<button disabled={isCreating} onClick={handleSubmit} key="create">
Create task
</button>,
<button disabled={isCreating} onClick={onClose}>
<button disabled={isCreating} onClick={onClose} key="cancel">
Cancel
</button>,
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function DeleteProjectDialog({
<Dialog
isOpen={isOpen}
buttons={[
<button disabled={isDeleting} onClick={handleSubmit}>
<button disabled={isDeleting} onClick={handleSubmit} key="delete">
Delete
</button>,
<button disabled={isDeleting} onClick={onClose}>
<button disabled={isDeleting} onClick={onClose} key="cancel">
Cancel
</button>,
]}
Expand Down
2 changes: 1 addition & 1 deletion examples/example-tutorial-todo-app/src/ProjectSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function ProjectSelect({

return (
<select value={project?.id} onChange={handleSelect}>
<option hidden disabled selected>
<option hidden disabled value="">
-- select a project --
</option>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ function CreateProjectDialog({
<Dialog
isOpen={isOpen}
buttons={[
<button disabled={isCreating} onClick={handleSubmit}>
<button disabled={isCreating} onClick={handleSubmit} key="create">
Create project
</button>,
<button disabled={isCreating} onClick={onClose}>
<button disabled={isCreating} onClick={onClose} key="cancel">
Cancel
</button>,
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ function CreateTaskDialog({ project, isOpen, onClose }: CreateTaskDialogProps) {
<Dialog
isOpen={isOpen}
buttons={[
<button disabled={isCreating} onClick={handleSubmit}>
<button disabled={isCreating} onClick={handleSubmit} key="create">
Create task
</button>,
<button disabled={isCreating} onClick={onClose}>
<button disabled={isCreating} onClick={onClose} key="cancel">
Cancel
</button>,
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function DeleteProjectDialog({
<Dialog
isOpen={isOpen}
buttons={[
<button disabled={isDeleting} onClick={handleSubmit}>
<button disabled={isDeleting} onClick={handleSubmit} key="delete">
Delete
</button>,
<button disabled={isDeleting} onClick={onClose}>
<button disabled={isDeleting} onClick={onClose} key="cancel">
Cancel
</button>,
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function ProjectSelect({

return (
<select value={project?.id} onChange={handleSelect}>
<option hidden disabled selected>
<option hidden disabled value="">
-- select a project --
</option>

Expand Down

0 comments on commit e660cbd

Please sign in to comment.