mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-29 17:44:52 +08:00
Add gtag and fix icons height
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
import React from 'react';
|
||||
import Helmet from 'components/helmet';
|
||||
import './global.scss';
|
||||
import { firePageView } from '../../lib/gtag';
|
||||
|
||||
const DefaultLayout = (props) => (
|
||||
<div>
|
||||
<Helmet />
|
||||
{ props.children }
|
||||
</div>
|
||||
);
|
||||
class DefaultLayout extends React.Component {
|
||||
componentDidMount() {
|
||||
firePageView(window.location.pathname);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<Helmet />
|
||||
{ this.props.children }
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default DefaultLayout;
|
||||
|
||||
Reference in New Issue
Block a user