Skip to content

Commit

Permalink
Merge pull request #1388 from gyordong/1188sort
Browse files Browse the repository at this point in the history
Custom rate and named standard rate for units (Issue #1216)
  • Loading branch information
huss authored Jan 8, 2025
2 parents 17d8af6 + 345131f commit 355bbb7
Show file tree
Hide file tree
Showing 8 changed files with 708 additions and 386 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ export default function CreateConversionModalComponent() {
setConversionState(defaultValues);
};

// Unlike edit, we decided to discard and inputs when you choose to leave the page. The reasoning is
// that create starts from an empty template.

// Submit
const handleSubmit = () => {
if (validConversion) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ export default function EditConversionModalComponent(props: EditConversionModalC
};

const handleClose = () => {
resetState();
props.handleClose();
resetState();
};

// Save changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ export default function CreateGroupModalComponent() {
setGraphicUnitsState(graphicUnitsStateDefaults);
};

// Unlike edit, we decided to discard inputs when you choose to leave the page. The reasoning is
// that create starts from an empty template.

// Save changes
const handleSubmit = () => {
// Close modal first to avoid repeat clicks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ export default function CreateMeterModalComponent(props: CreateMeterModalProps):
resetState();
};

// Unlike edit, we decided to discard and inputs when you choose to leave the page. The reasoning is
// that create starts from an empty template.

// Submit
const handleSubmit = async () => {
// Close modal first to avoid repeat clicks
Expand Down Expand Up @@ -683,4 +680,4 @@ export default function CreateMeterModalComponent(props: CreateMeterModalProps):
</Modal >
</>
);
}
}
Loading

0 comments on commit 355bbb7

Please sign in to comment.