-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor the structure of base container
Description: Refactor the structure of base component VAN-1840
- Loading branch information
1 parent
3953c76
commit eb6d9ef
Showing
7 changed files
with
67 additions
and
75 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
|
||
import PropTypes from 'prop-types'; | ||
|
||
import BaseContainer from '../base-container'; | ||
|
||
/** | ||
* Main component that holds the logic for conditionally rendering login or registration form. | ||
* | ||
* @param {boolean} open - Required. Whether to open the modal window containing login or registration form. | ||
* @param {function} setOpen - Required. Is used to toggle the modal window's open flag. | ||
* | ||
* @returns {JSX.Element} The rendered BaseContainer component containing either login or registration form. | ||
*/ | ||
|
||
const AuthnComponent = ({ | ||
open, setOpen, | ||
}) => ( | ||
<BaseContainer open={open} setOpen={setOpen}> | ||
<div>Login form</div> | ||
</BaseContainer> | ||
); | ||
|
||
AuthnComponent.propTypes = { | ||
open: PropTypes.bool.isRequired, | ||
setOpen: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default AuthnComponent; |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
.modal-body-container .pgn__modal-body-content { | ||
height: 100%; | ||
} | ||
@import "@edx/brand/paragon/variables"; | ||
|
||
.modal-body-container .modal-body-content-layout { | ||
display: flex; | ||
width: 100%; | ||
.modal-body-container .pgn__modal-body-content { | ||
height: 100%; | ||
} | ||
|
||
// This class is related to close button of modal | ||
.pgn__modal-close-container { | ||
background: white; | ||
background: $white; | ||
border-radius: 50%; | ||
border: 2px solid $light-500; | ||
} | ||
|
||
.modal-footer-content { | ||
padding: 0 !important; | ||
.pgn__modal-close-container .btn-icon__icon-container { | ||
color: $light-700; | ||
} | ||
|
||
.privacy-policy-content { | ||
margin-bottom: 0px; | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.