-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a031c1d
commit eedae24
Showing
9 changed files
with
97 additions
and
47 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
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,17 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
/* The purpose of this component is to wrap views with a header/footer for situations | ||
* where we need to run non-embedded | ||
*/ | ||
|
||
const AppContainer = ({ Component }) => ( | ||
<div> | ||
<Component /> | ||
</div> | ||
); | ||
AppContainer.propTypes = { | ||
Component: PropTypes.elementType.isRequired, | ||
}; | ||
|
||
export default AppContainer; |
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,25 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { FullscreenModal } from '@edx/paragon'; | ||
|
||
/* The purpose of this component is to wrap views with a header/footer for situations | ||
* where we need to run non-embedded | ||
*/ | ||
|
||
const ModalContainer = ({ Component, title }) => ( | ||
<FullscreenModal | ||
isOpen | ||
onClose={null} | ||
hasCloseButton={false} | ||
title={title} | ||
modalBodyClassName="content-body" | ||
> | ||
<Component /> | ||
</FullscreenModal> | ||
); | ||
ModalContainer.propTypes = { | ||
Component: PropTypes.elementType.isRequired, | ||
title: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default ModalContainer; |
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
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,9 @@ | ||
import React from 'react'; | ||
|
||
export const XBlockView = () => { | ||
return ( | ||
<div>XBlock View</div> | ||
) | ||
}; | ||
|
||
export default XBlockView | ||