Commit ef8e6f33 authored by Andy Lamb's avatar Andy Lamb
Browse files

need to add yammer to homepage

parent c0085493
......@@ -17282,6 +17282,12 @@
"prop-types": "^15.6.1"
}
},
"react-inline-script": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/react-inline-script/-/react-inline-script-1.2.0.tgz",
"integrity": "sha512-Idfm2rYZ5KLr6Ti1IICkb8lIC7FMxDZoEJF93egGH+F1rAwWByAjPElcD0Tx2yBk39shYu8Pjo/CF09++yA27g==",
"dev": true
},
"react-input-autosize": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/react-input-autosize/-/react-input-autosize-2.2.2.tgz",
......
import React, { Component } from 'react';
// import { Helmet } from 'react-helmet';
import Script from 'react-inline-script';
import PropTypes from 'prop-types';
class YammerScripts extends Component {
componentDidMount() {
const script = document.createElement('script');
script.src = 'https://s0-azure.assets-yammer.com/assets/platform_embed.js';
script.async = true;
document.body.appendChild(script);
}
render() {
return (
<Script type="text/javascript">
{`
yam.connect.embedFeed({
container: "${this.props.container}",
network: "${this.props.network}",
feedType: "${this.props.feedType}",
feedId: "${this.props.feedId}"
});
`}
</Script>
);
}
}
YammerScripts.propTypes = {
container: PropTypes.string,
network: PropTypes.string,
feedType: PropTypes.string,
feedId: PropTypes.string,
};
export default YammerScripts;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment