Skip to content

Commit

Permalink
refactor: 테스트를 위해 임시 안내문 페이지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielyoon7 committed Nov 25, 2023
1 parent dd36247 commit 98fe190
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
import { Status, Wrapper } from '@googlemaps/react-wrapper';
import Loading from 'components/ui/Loading';

import CarFfeineMap from '@map/CarFfeineMap';

import NotFound from '@ui/NotFound';

const render = (status: Status) => {
switch (status) {
case Status.LOADING:
return <Loading />;
case Status.FAILURE:
return <NotFound />;
case Status.SUCCESS:
return <CarFfeineMap />;
}
};

const App = () => {
function App() {
return (
<Wrapper
apiKey={
process.env.NODE_ENV === 'production'
? process.env.GOOGLE_MAPS_API_KEY_PROD
: process.env.GOOGLE_MAPS_API_KEY_DEV
}
render={render}
libraries={['marker']}
/>
<div>
<div style={{ fontSize: '20px' }}>서비스 이전중...</div>
<a href="https://dev.carffe.in">개발 서버에서 확인하기 (Click)</a>
</div>
);
};
}

export default App;

0 comments on commit 98fe190

Please sign in to comment.