Skip to content

Commit

Permalink
Merge branch 'prod'
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Sep 12, 2023
2 parents 7129817 + d285469 commit fcbeb00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import '../styles/layout/layout.scss';
// prettier-ignore
import '../styles/primereact.css';
// prettier-ignore
import { GTagManager } from '../components/analytics/analytics';
import PrimeReact from '../components/lib/api/Api';
import { PrimeReactContext, PrimeReactProvider } from '../components/lib/api/PrimeReactContext';
import AnnouncementData from '../data/news.json';
import '../styles/demo/demo.scss';
import { GTagManager } from '../components/analytics/analytics';

function Main({ component: Component }) {
const [dark, setDark] = useState(false);
Expand Down Expand Up @@ -97,6 +97,8 @@ function Main({ component: Component }) {
}

export default function MyApp({ Component }) {
const isProduction = process.env.NODE_ENV === 'production';

return (
<PrimeReactProvider>
{isProduction && <GTagManager />}
Expand Down

0 comments on commit fcbeb00

Please sign in to comment.