Skip to content

Commit 48b4305

Browse files
authored
Merge pull request #169 from dnd-side-project/feat/#168/vercel-analytics
[feat] vercel analytics ์ ์šฉ
2 parents 5db1109 + f1ed7bd commit 48b4305

File tree

4 files changed

+47
-12
lines changed

4 files changed

+47
-12
lines changed

โ€Žpackage.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"@stomp/stompjs": "^7.1.1",
3535
"@supabase/supabase-js": "^2.79.0",
3636
"@tanstack/react-query": "^5.84.2",
37+
"@vercel/analytics": "^1.6.1",
3738
"axios": "^1.11.0",
3839
"embla-carousel": "^8.6.0",
3940
"embla-carousel-react": "^8.6.0",

โ€Žpnpm-lock.yamlโ€Ž

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

โ€Žsrc/main.tsxโ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { BrowserRouter } from 'react-router-dom'
22

3+
import { Analytics } from '@vercel/analytics/react'
34
import { createRoot } from 'react-dom/client'
45

56
import { QueryProvider, ThemeProvider } from '@app/providers'
@@ -13,6 +14,7 @@ createRoot(document.getElementById('root')!).render(
1314
<QueryProvider>
1415
<ThemeProvider>
1516
<GlobalStyle />
17+
<Analytics />
1618
<App />
1719
</ThemeProvider>
1820
</QueryProvider>

โ€Žsrc/pages/home/ui/FeedbackBottomSheet.tsxโ€Ž

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const FeedbackBottomSheet = ({ isOpen, onClose }: FeedbackBottomSheetProps) => {
4242
<img src={FeedbackImg} alt="feedback" width={206} height={206} />
4343
</Content>
4444
<ButtonWrapper>
45-
<Label>~ 12/31(์ˆ˜)๊นŒ์ง€</Label>
4645
<Button onClick={() => navigate('/feedback')} size="L" state="primary">
4746
์œ ์ €ํ…Œ์ŠคํŠธ ์ฐธ์—ฌํ•˜๊ธฐ
4847
</Button>
@@ -79,17 +78,17 @@ const ButtonWrapper = styled.div`
7978
flex-direction: column;
8079
`
8180

82-
const Label = styled.span`
83-
position: absolute;
84-
top: -18%;
85-
right: 12%;
86-
background-color: ${({ theme }) => theme.COLOR['gray-700']};
87-
color: ${({ theme }) => theme.COLOR['primary-normal']};
88-
${({ theme }) => theme.FONT.caption1};
89-
border-radius: 40px;
90-
padding: 4px 12px;
91-
border: 1px solid ${({ theme }) => theme.COLOR['primary-normal']};
92-
`
81+
// const Label = styled.span`
82+
// position: absolute;
83+
// top: -18%;
84+
// right: 12%;
85+
// background-color: ${({ theme }) => theme.COLOR['gray-700']};
86+
// color: ${({ theme }) => theme.COLOR['primary-normal']};
87+
// ${({ theme }) => theme.FONT.caption1};
88+
// border-radius: 40px;
89+
// padding: 4px 12px;
90+
// border: 1px solid ${({ theme }) => theme.COLOR['primary-normal']};
91+
// `
9392

9493
const Content = styled.div`
9594
${flexColCenter}

0 commit comments

Comments
ย (0)