Skip to content

Commit

Permalink
Fix Mobile TimePicker Buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrozadotdev committed Nov 20, 2023
1 parent 0fd7678 commit cc5f9b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ const handleClick = (
params.onChange(time);
},
onClose: params.onBlur,
confirmText: trans("time.mobileConfirmButtonText"),
cancelText: trans("time.mobileCancelButtonText")
});

params.onFocus();
Expand Down
2 changes: 2 additions & 0 deletions client/packages/openblocks/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,8 @@ export const en = {
placeholder: "Select Time",
startTime: "Start time",
endTime: "End time",
mobileCancelButtonText: "Cancel",
mobileConfirmButtonText: "Confirm",
},
button: {
prefixIcon: "Prefix icon",
Expand Down
2 changes: 2 additions & 0 deletions client/packages/openblocks/src/i18n/locales/pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,8 @@ export const pt = {
placeholder: "Selecione o tempo",
startTime: "Tempo de início",
endTime: "Tempo final",
mobileCancelButtonText: "Cancelar",
mobileConfirmButtonText: "Confirmar",
},
button: {
prefixIcon: "Ícone do prefixo",
Expand Down

0 comments on commit cc5f9b0

Please sign in to comment.