Skip to content

Commit

Permalink
feat: add Brazilian grades to frontend
Browse files Browse the repository at this point in the history
fixes #1022
  • Loading branch information
enapupe committed Nov 10, 2023
1 parent 00b42e2 commit 5c66354
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@hookform/resolvers": "^3.1.1",
"@lexical/react": "^0.7.5",
"@math.gl/web-mercator": "3.6.2",
"@openbeta/sandbag": "^0.0.48",
"@openbeta/sandbag": "^0.0.51",
"@radix-ui/react-alert-dialog": "^1.0.0",
"@radix-ui/react-dialog": "^1.0.0",
"@radix-ui/react-dropdown-menu": "^2.0.1",
Expand Down
12 changes: 12 additions & 0 deletions src/js/grades/Grade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ const gradeContextToGradeScales = {
aid: GradeScales.FRENCH,
snow: GradeScales.FRENCH, // is this the same as alpine?
ice: GradeScales.FRENCH // is this the same as alpine?
},
BR: {
trad: GradeScales.BRAZILIAN_CRUX,
sport: GradeScales.BRAZILIAN_CRUX,
bouldering: GradeScales.VSCALE,
tr: GradeScales.BRAZILIAN_CRUX,
deepwatersolo: GradeScales.BRAZILIAN_CRUX,
alpine: GradeScales.BRAZILIAN_CRUX,
mixed: GradeScales.BRAZILIAN_CRUX,
aid: GradeScales.AID,
ice: GradeScales.WI,
snow: GradeScales.WI
}
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1805,10 +1805,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@openbeta/sandbag@^0.0.48":
version "0.0.48"
resolved "https://registry.yarnpkg.com/@openbeta/sandbag/-/sandbag-0.0.48.tgz#d876ae47634c287be1f71858576a9f826f8ee270"
integrity sha512-QyTGG9Y+c+2TY+EbdUByAAr1u7qyqZ4H1ZM0TztetJU/a7TLjdMoR32yaRY8uSFvm3f1sP0zn0ffhlLiICDdlg==
"@openbeta/sandbag@^0.0.51":
version "0.0.51"
resolved "https://registry.yarnpkg.com/@openbeta/sandbag/-/sandbag-0.0.51.tgz#21ce618d2414dc0b8d4f31ef260ac2ebad5a43c8"
integrity sha512-qMVohgqRdFjXH8a3aSEZa6zemwSpak/HMttR/pqvclDIXqgPKzWvjFRA3o/YDGieI/19P4dtizLo91TKx0smGQ==

"@panva/hkdf@^1.0.2":
version "1.1.1"
Expand Down

0 comments on commit 5c66354

Please sign in to comment.