Skip to content

Commit

Permalink
refactor: 필요없는 코드 삭제 (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
GC-Park authored Sep 26, 2023
1 parent 86f6549 commit 5ad4c21
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
import { RouterProvider } from 'react-router-dom';
import router from './router';
import { useEffect } from 'react';
import ReactGA from 'react-ga';
import { createBrowserHistory as createHistory } from 'history';

const App = () => {
const history = createHistory();

useEffect(() => {
ReactGA.initialize('G-RRSTX6Y61Y', { debug: true });
history.listen((location: any) => {
ReactGA.set({ page: location.pathname });
ReactGA.pageview(location.pathname);
});
}, []);
return <RouterProvider router={router} />;
};

Expand Down

0 comments on commit 5ad4c21

Please sign in to comment.