Skip to content

Commit

Permalink
fix(apps/staking): Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
nevendyulgerov authored and brunomenezes committed Nov 24, 2024
1 parent 057dd6c commit b8a628e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions apps/staking/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,28 @@ import { ChakraProvider } from '@chakra-ui/react';
import { theme } from '@explorer/ui';
import { AppProps } from 'next/app';
import dynamic from 'next/dynamic';
import { useEffect } from 'react';
import { FC, useEffect, ReactNode } from 'react';
import TagManager from 'react-gtm-module';
import ApolloContainer from '../components/ApolloContainer';

import { Fonts } from '@explorer/ui';
import { GA4TrackerProvider } from '../contexts/ga4Tracker';
import PageHead from '../components/PageHead';

type ComponentType = FC<{ children: ReactNode }>;

const FeatureFlagProvider = dynamic(() => import('../utils/featureFlags'), {
ssr: false,
});
}) as ComponentType;

const Web3Container = dynamic(() => import('../components/Web3Container'), {
ssr: false,
});
}) as ComponentType;

const App = ({ Component, pageProps }: AppProps) => {
const App = ({
Component,
pageProps,
}: AppProps & { Component: ComponentType }) => {
useEffect(() => {
if (process.env.NODE_ENV === 'production') {
TagManager.initialize({
Expand Down

0 comments on commit b8a628e

Please sign in to comment.