Skip to content

Commit

Permalink
fix: comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Riddhiagrawal001 committed Jun 23, 2024
1 parent 23778b3 commit 7c2f791
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/entryPoints/AuthModule/AuthWrapper.res
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,14 @@ let make = (~children) => {
| LoggedOut =>
<AuthHeaderWrapper childrenStyle="flex flex-col gap-4">
{authMethods
->Array.mapWithIndex((authMethod, index) => <>
{authMethod.name->renderComponentForAuthTypes}
<UIUtils.RenderIf condition={index === 0 && authMethods->Array.length !== 1}>
{PreLoginUtils.divider}
</UIUtils.RenderIf>
</>)
->Array.mapWithIndex((authMethod, index) =>
<React.Fragment key={index->Int.toString}>
{authMethod.name->renderComponentForAuthTypes}
<UIUtils.RenderIf condition={index === 0 && authMethods->Array.length !== 1}>
{PreLoginUtils.divider}
</UIUtils.RenderIf>
</React.Fragment>
)
->React.array}
</AuthHeaderWrapper>
| PreLogin(_) => <DecisionScreen />
Expand Down

0 comments on commit 7c2f791

Please sign in to comment.