Skip to content

Commit

Permalink
refactor(payout): resolve more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif-m committed Jul 15, 2024
1 parent 238eb4c commit 0a6fade
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/Components/InputField.res
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,15 @@ let make = (
/>
<div className={`flex -ml-10 items-center`}> {rightIcon} </div>
</div>
{switch errorString {
| Some(val) =>
<RenderIf condition={val->String.length > 0}>
<div className={`py-1 ${errorStringClasses->Option.getOr("")}`}> {React.string(val)} </div>
</RenderIf>
| None => React.null
}}
{
let errorClases = errorStringClasses->Option.getOr("")
switch errorString {
| Some(val) =>
<RenderIf condition={val->String.length > 0}>
<div className={`py-1 ${errorClases}`}> {React.string(val)} </div>
</RenderIf>
| None => React.null
}
}
</div>
}

0 comments on commit 0a6fade

Please sign in to comment.