Skip to content

Commit

Permalink
Added changeset: Dev Tools fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-akamai committed Nov 27, 2024
1 parent bb195a3 commit 86d2c60
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tech Stories
---

Dev Tools fixes and improvements ([#11328](https://github.com/linode/manager/pull/11328))
14 changes: 8 additions & 6 deletions packages/manager/src/dev-tools/components/ExtraPresetAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,13 @@ export const ExtraPresetAccount = ({
open={isEditingCustomAccount}
title="Edit Custom Account"
>
<form className="dev-tools__modal-form">
<form
onSubmit={(e) => {
e.preventDefault();
setIsEditingCustomAccount(false);
}}
className="dev-tools__modal-form"
>
<FieldWrapper>
<label>
First Name
Expand Down Expand Up @@ -355,11 +361,7 @@ export const ExtraPresetAccount = ({
/>
</label>
</FieldWrapper>
<button
className="button"
onClick={() => setIsEditingCustomAccount(false)}
type="submit"
>
<button className="button" type="submit">
Save
</button>
</form>
Expand Down
11 changes: 5 additions & 6 deletions packages/manager/src/dev-tools/components/ExtraPresetProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ export const ExtraPresetProfile = ({
open={isEditingCustomProfile}
title="Edit Custom Profile"
>
<form className="dev-tools__modal-form">
<form
className="dev-tools__modal-form"
onSubmit={() => setIsEditingCustomProfile(false)}
>
<FieldWrapper>
<label>
Username
Expand Down Expand Up @@ -305,11 +308,7 @@ export const ExtraPresetProfile = ({
value={formData.authorized_keys}
/>
</FieldWrapper>
<button
className="button"
onClick={() => setIsEditingCustomProfile(false)}
type="submit"
>
<button className="button" type="submit">
Save
</button>
</form>
Expand Down

0 comments on commit 86d2c60

Please sign in to comment.