Skip to content

Commit

Permalink
Merge pull request #354 from EscolaLMS/feature/hide-register
Browse files Browse the repository at this point in the history
hide register
  • Loading branch information
victazzz authored Apr 23, 2024
2 parents 459e95c + 059d86d commit dda4247
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/components/organisms/LoginForm/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,17 @@ export const LoginForm: React.FC<Props> = ({
{t<string>("Login.NotRemember")}
</Link>
</Text>
<Text size="14">{t<string>("Login.NoAccount")} </Text>
<Button
mode={"outline"}
onClick={() => onRegisterLink && onRegisterLink()}
>
{submitText ? submitText : t<string>("Login.Signup")}
</Button>
{!submitText && (
<>
<Text size="14">{t<string>("Login.NoAccount")} </Text>
<Button
mode={"outline"}
onClick={() => onRegisterLink && onRegisterLink()}
>
{submitText ? submitText : t<string>("Login.Signup")}
</Button>
</>
)}
</StyledDiv>
);
};
Expand Down

0 comments on commit dda4247

Please sign in to comment.