1
1
import { css } from "@emotion/react" ;
2
2
import Hotjar from "@hotjar/browser" ;
3
- import { PATHS } from "@layer/shared" ;
3
+ // import { PATHS } from "@layer/shared";
4
4
import { useEffect } from "react" ;
5
- import { Outlet , useLocation } from "react-router-dom" ;
5
+ import { Outlet } from "react-router-dom" ;
6
+ // import { useLocation } from "react-router-dom";
6
7
7
8
import { Announcement } from "@/component/announcement/Announcement" ;
8
9
import { Modal } from "@/component/common/Modal" ;
9
10
import { Typography } from "@/component/common/typography" ;
10
11
import { PreventExternalBrowser } from "@/helper/preventExternalBrowser.tsx" ;
11
12
import { useBottomSheet } from "@/hooks/useBottomSheet" ;
12
- import { useToast } from "@/hooks/useToast" ;
13
- import ChannelService from "@/lib/channel-talk/service" ;
13
+ // import ChannelService from "@/lib/channel-talk/service";
14
14
import { useBridge } from "@/lib/provider/bridge-provider" ;
15
15
16
16
const siteId = import . meta. env . VITE_HOTJAR_KEY as number ;
@@ -19,22 +19,21 @@ const SHEET_ID = "announcement";
19
19
20
20
export default function GlobalLayout ( ) {
21
21
const { safeAreaHeight } = useBridge ( ) ;
22
- const location = useLocation ( ) ;
23
22
const { openBottomSheet, closeBottomSheet } = useBottomSheet ( ) ;
24
- const { toast } = useToast ( ) ;
25
23
26
24
useEffect ( ( ) => {
27
25
Hotjar . init ( siteId , hotjarVersion ) ;
28
26
openBottomSheet ( { id : SHEET_ID } ) ;
29
27
} , [ ] ) ;
30
28
31
- useEffect ( ( ) => {
32
- if ( location . pathname . startsWith ( PATHS . myInfo ( ) ) ) {
33
- ChannelService . showChannelButton ( ) ;
34
- } else {
35
- ChannelService . hideChannelButton ( ) ;
36
- }
37
- } , [ location ] ) ;
29
+ /* NOTE - 인프라 이전 기간동안 채널톡 모든 페이지 노출 */
30
+ // useEffect(() => {
31
+ // if (location.pathname.startsWith(PATHS.myInfo())) {
32
+ // ChannelService.showChannelButton();
33
+ // } else {
34
+ // ChannelService.hideChannelButton();
35
+ // }
36
+ // }, [location]);
38
37
39
38
return (
40
39
< div
@@ -62,7 +61,6 @@ export default function GlobalLayout() {
62
61
content = {
63
62
< >
64
63
< Typography
65
- as = "p"
66
64
variant = { "body16Medium" }
67
65
color = { "gray600" }
68
66
css = { css `
@@ -77,43 +75,35 @@ export default function GlobalLayout() {
77
75
78
76
1. 점검 시간
79
77
80
- 2024년 11월 10일(일) 13:00 ~ 22:00
78
+ ` }
79
+ </ Typography >
80
+ < Typography variant = { "subtitle16SemiBold" } > 2024년 11월 10일(일) 13:00 ~ 22:00</ Typography >
81
+ < Typography
82
+ variant = { "body16Medium" }
83
+ color = { "gray600" }
84
+ css = { css `
85
+ white-space : pre-wrap;
86
+ ` }
87
+ >
88
+ { `
81
89
※ 모든 시간은 한국시간 기준입니다.
82
90
※ 작업 진행상황에 따라 일정은 변경될 수 있습니다.
83
91
84
92
2. 대상 서비스
85
93
86
94
레이어 서비스
87
95
88
- 해당 기간동안 궁금하신 점은` }
89
- </ Typography >
90
- < Typography
91
- variant = { "body16Medium" }
92
- color = { "blue500" }
93
- css = { css `
94
- text-decoration : underline;
95
- cursor : pointer;
96
- ` }
97
- onClick = { async ( ) => {
98
- try {
99
- await navigator . clipboard . writeText ( "gentlemonster77@likelion.org" ) ;
100
- toast . success ( "이메일이 클립보드에 복사되었습니다" ) ;
101
- } catch ( e ) {
102
- toast . success ( "다시 시도해주세요" ) ;
103
- }
104
- } }
105
- >
106
- gentlemonster77@likelion.org
96
+ 해당 기간동안 궁금하신 점은 ` }
107
97
</ Typography >
98
+ < Typography variant = { "subtitle16SemiBold" } > 페이지 하단의 문의하기</ Typography >
108
99
< Typography
109
- as = "p"
110
100
variant = { "body16Medium" }
111
101
color = { "gray600" }
112
102
css = { css `
113
103
white-space : pre-wrap;
114
104
` }
115
105
>
116
- { `로 문의를 주시면 빠르게 확인 후 순차적으로 답변 드리겠습니다.
106
+ { `를 통해 채팅 남겨주시면 빠르게 확인 후 순차적으로 답변 드리겠습니다.
117
107
118
108
이용에 불편을 드려 죄송합니다.
119
109
보다 안정적인 서비스를 제공하기 위해 노력하는 레이어가 되겠습니다.
0 commit comments