Skip to content

Commit

Permalink
#134 - Fix logo condition in Login component (#135)
Browse files Browse the repository at this point in the history
* #134 - Fix logo condition in Login component

* #134 - Indentation

---------

Co-authored-by: imikulec <[email protected]>
  • Loading branch information
ivam5 and imikulec authored Oct 27, 2023
1 parent 64a9a38 commit ac21f0c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions libs/patterns/src/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,14 @@ export default function Login({
<Form>
<FormLayout.Section>
<div className={tokens.master}>
{logo ? (
{logo && (
<div className={tokens.logoContainer}>
<img src={logo} alt="logo" className={tokens.logoSize} />
</div>
) : (
<>
{children}
<h1 className={tokens.headerContainer}>{<Intl name={title || "login.labels.header"} />}</h1>
</>
)}
)
}
{children}
<h1 className={tokens.headerContainer}>{<Intl name={title || "login.labels.header"} />}</h1>
<InputField
className={tokens.inputSpacing}
name={useEmail ? "email" : "username"}
Expand Down

0 comments on commit ac21f0c

Please sign in to comment.