Skip to content

Commit

Permalink
design: 스크롤 숨기기
Browse files Browse the repository at this point in the history
  • Loading branch information
im-na0 committed Jan 27, 2024
1 parent 8d62700 commit 7e3f680
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions src/components/A2HS/A2HS.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ export const A2HSContainer = styled(motion.div)`
z-index: 3;
transform: translateX(-50%);
@media (max-width: ${breakpoints.tablet}) {
width: 100%;
}
@media (max-width: ${breakpoints.mobile}) {
width: 100%;
}
`;

export const CloseButton = styled.button`
Expand Down
6 changes: 6 additions & 0 deletions src/components/layout/Layout.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ export const Container = styled.div`
justify-content: center;
align-items: center;
overflow-x: hidden;
-ms-overflow-style: none;
&::-webkit-scrollbar {
display: none;
}
`;

export const Wrapper = styled.div`
Expand Down
1 change: 0 additions & 1 deletion src/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ async function checkAccessToken() {
}

checkAccessToken();

// Get registration token. Initially this makes a network call, once retrieved
// subsequent calls to getToken will return from cache.
4 changes: 0 additions & 4 deletions src/utils/getNotificationPermission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { getToken, onMessage } from "firebase/messaging";

async function getNotificationPermission() {
console.log("권한 요청 중...");
// isMobileSafari일 경우 false일 가능성이 생김.
// messaging이 false일 경우 return
if (!messaging) return;

const permission = await Notification.requestPermission();
Expand All @@ -19,8 +17,6 @@ async function getNotificationPermission() {
vapidKey: import.meta.env.VITE_FIREBASE_VAPID,
});

console.log(fcmToken);

if (fcmToken) console.log("token: ", fcmToken);
else console.log("Can not get Token");

Expand Down
1 change: 0 additions & 1 deletion src/utils/maximumSaleInLocale.ts

This file was deleted.

0 comments on commit 7e3f680

Please sign in to comment.