Skip to content

Commit

Permalink
Codepens should use OUFR @next
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed May 29, 2019
1 parent 1dd2183 commit ea8ddc5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ const getStyles: IStyleFunction<ICodepenStyleProps, ICodepenStyles> = () => ({})
const getClassNames = classNamesFunction<ICodepenStyleProps, ICodepenStyles>();

const CodepenComponentBase: React.StatelessComponent<ICodepenProps> = props => {
const { jsContent, buttonAs: ButtonType = CommandButton, buttonClassName, styles, theme } = props;
const { jsContent, buttonAs: ButtonType = CommandButton, styles, theme } = props;

const classNames = getClassNames(styles, { theme: theme! });
const buttonStyles = classNames.subComponentStyles.button;

// boilerplate for codepen API
const htmlContent = '<script src="//unpkg.com/office-ui-fabric-react/dist/office-ui-fabric-react.js"></script>\n<div id="content"></div>';
const htmlContent =
'<script src="//unpkg.com/office-ui-fabric-react@next/dist/office-ui-fabric-react.js"></script>\n<div id="content"></div>';

const headContent =
'<script type="text/javascript" src="https://unpkg.com/react@16/umd/react.development.js"></script>\n<script type="text/javascript" src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>';
Expand All @@ -40,7 +41,6 @@ const CodepenComponentBase: React.StatelessComponent<ICodepenProps> = props => {
type="submit"
iconProps={{ iconName: 'OpenInNewWindow' }}
text="Export to CodePen"
className={buttonClassName}
styles={typeof buttonStyles === 'function' ? buttonStyles({}) : buttonStyles}
/>
</form>
Expand Down

0 comments on commit ea8ddc5

Please sign in to comment.