Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Components/ErrorComponent.res
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ open RecoilAtoms

@react.component
let make = (~errorStr=None, ~cardError="", ~expiryError="", ~cvcError="") => {
let {themeObj, config} = Recoil.useRecoilValueFromAtom(configAtom)
let {themeObj, config, localeString} = Recoil.useRecoilValueFromAtom(configAtom)
let {innerLayout} = config.appearance

let errorTextStyle: JsxDOM.style = {
Expand All @@ -29,7 +29,9 @@ let make = (~errorStr=None, ~cardError="", ~expiryError="", ~cvcError="") => {
</RenderIf>
| Compressed =>
<RenderIf condition=isCompressedErrorShown>
<div className="Error pt-1" style=errorTextStyle> {React.string("Invalid input")} </div>
<div className="Error pt-1" style=errorTextStyle>
{React.string(localeString.enterValidDetailsText)}
</div>
</RenderIf>
}
}
2 changes: 1 addition & 1 deletion src/Payments/CardPayment.res
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ let make = (
alignSelf: "start",
textAlign: "left",
}>
{React.string("Invalid input")}
{React.string(localeString.enterValidDetailsText)}
</div>
</RenderIf>
</RenderIf>
Expand Down
Loading