This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(StandAloneFormPage): Made the logo variable
Made the logo variable by passing it in LoginPage/registerPage/ForgotPasswordPage
- Loading branch information
Showing
4 changed files
with
41 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
// @flow | ||
|
||
import * as React from "react"; | ||
|
||
type Props = {| | ||
+children?: React.Node, | ||
|}; | ||
|
||
function StandaloneFormPage(props: Props): React.Node { | ||
return ( | ||
<div className="page"> | ||
<div className="page-single"> | ||
<div className="container"> | ||
<div className="row"> | ||
<div className="col col-login mx-auto"> | ||
<div className="text-center mb-6"> | ||
<img src="./assets/brand/tabler.svg" className="h-6" alt="" /> | ||
</div> | ||
{props.children} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default StandaloneFormPage; | ||
// @flow | ||
|
||
import * as React from "react"; | ||
|
||
type Props = {| | ||
+children?: React.Node, | ||
+imageURL?: string, | ||
|}; | ||
|
||
function StandaloneFormPage(props: Props): React.Node { | ||
return ( | ||
<div className="page"> | ||
<div className="page-single"> | ||
<div className="container"> | ||
<div className="row"> | ||
<div className="col col-login mx-auto"> | ||
<div className="text-center mb-6"> | ||
<img src={props.imageURL} className="h-6" alt="logo" /> | ||
</div> | ||
{props.children} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default StandaloneFormPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters