Skip to content

Commit

Permalink
refactor(ui-storage): update st-storage group names to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia committed Dec 17, 2024
1 parent 0d1aca2 commit 4f3b134
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ function Renewables() {
config={{ defaultValues }}
onSubmit={handleSubmit}
enableUndoRedo
sx={{ height: "50%" }}
>
<Fields />
</Form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function Fields() {
name="group"
control={control}
options={STORAGE_GROUPS}
startCaseLabel={false}
sx={{
alignSelf: "center",
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ function Storages() {
}}
onSubmit={handleSubmit}
enableUndoRedo
sx={{ height: "50%" }}
>
<Fields />
</Form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import type { PartialExceptFor } from "../../../../../../../utils/tsUtils";
////////////////////////////////////////////////////////////////

export const STORAGE_GROUPS = [
"PSP_open",
"PSP_closed",
"Pondage",
"Battery",
"Other1",
"Other2",
"Other3",
"Other4",
"Other5",
"psp_open",
"psp_closed",
"pondage",
"battery",
"other1",
"other2",
"other3",
"other4",
"other5",
] as const;

////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 4f3b134

Please sign in to comment.