Skip to content

Commit

Permalink
fix(deps): update dependency i18next to v22 (#383)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency i18next to v22

* fix: remove type casts following i18next updates

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alexandre Soro <code@soro.dev>
  • Loading branch information
renovate[bot] and alexandresoro authored Oct 24, 2022
1 parent 29b6052 commit ed43ee2
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"date-fns": "2.29.3",
"date-fns-tz": "1.3.7",
"graphql": "16.6.0",
"i18next": "21.10.0",
"i18next": "22.0.2",
"i18next-http-backend": "1.4.4",
"proj4": "2.8.0",
"react": "18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/components/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const LoginPage: FunctionComponent = () => {
name="username"
control={control}
rules={{
required: t("loginRequiredLabel") as unknown as string
required: t("loginRequiredLabel")
}}
render={({ field }) => (
<CenteredFlexBox>
Expand All @@ -137,7 +137,7 @@ const LoginPage: FunctionComponent = () => {
name="password"
control={control}
rules={{
required: t("passwordRequiredLabel") as unknown as string
required: t("passwordRequiredLabel")
}}
render={({ field }) => (
<CenteredFlexBox>
Expand Down
4 changes: 2 additions & 2 deletions src/components/manage/common/TableCellActionButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ const TableCellActionButtons: FunctionComponent<TableCellActionButtonsProps> = (

return (
<>
<Tooltip title={t("aria-editButton") as unknown as string}>
<Tooltip title={t("aria-editButton")}>
<PrimaryIconButton disabled={disabled} aria-label={t("aria-editButton")} onClick={onEditClicked}>
<Edit />
</PrimaryIconButton>
</Tooltip>
<Tooltip title={t("aria-deleteButton") as unknown as string}>
<Tooltip title={t("aria-deleteButton")}>
<PrimaryIconButton disabled={disabled} aria-label={t("aria-deleteButton")} onClick={onDeleteClicked}>
<Delete />
</PrimaryIconButton>
Expand Down
2 changes: 1 addition & 1 deletion src/components/manage/observateur/ObservateurEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const ObservateurEdit: FunctionComponent<ObservateurEditProps> = (props) => {
control={control}
defaultValue=""
rules={{
required: t("requiredFieldError") as unknown as string
required: t("requiredFieldError")
}}
render={({ field }) => (
<TextField
Expand Down
4 changes: 2 additions & 2 deletions src/components/view/DonneeDetailsRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ const DonneeDetailsRow: FunctionComponent<DonneeRowProps> = (props) => {
<TableCell>{intlFormat(parseISO(donnee?.inventaire.date))}</TableCell>
<TableCell>{donnee?.inventaire.observateur.libelle}</TableCell>
<TableCell align="right">
<Tooltip title={t("observationsTable.header.action.edit") as unknown as string}>
<Tooltip title={t("observationsTable.header.action.edit")}>
<PrimaryIconButton aria-label={t("observationsTable.header.action.edit")} onClick={onEditAction}>
<Edit />
</PrimaryIconButton>
</Tooltip>
<Tooltip title={t("observationsTable.header.action.delete") as unknown as string}>
<Tooltip title={t("observationsTable.header.action.delete")}>
<PrimaryIconButton aria-label={t("observationsTable.header.action.delete")} onClick={onDeleteAction}>
<Delete />
</PrimaryIconButton>
Expand Down
5 changes: 1 addition & 4 deletions src/components/view/DonneeFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ const DonneeFilter: FunctionComponent = () => {
))
}
/>
<FormControlLabel
control={<Switch />}
label={t("observationFilter.displayOnlyMyObservations") as unknown as string}
/>
<FormControlLabel control={<Switch />} label={t("observationFilter.displayOnlyMyObservations")} />
<Button variant="outlined">{t("observationFilter.exportToExcel")}</Button>
</FormGroup>
</Card>
Expand Down

0 comments on commit ed43ee2

Please sign in to comment.