diff --git a/src/components/common/header/index.tsx b/src/components/common/header/index.tsx index 732fce3..e06f37d 100644 --- a/src/components/common/header/index.tsx +++ b/src/components/common/header/index.tsx @@ -14,6 +14,7 @@ export const Header = () => { const { pathname } = useLocation(); const _pathname: string = pathname.substring(1); const email = Cookie.get('email'); + const [clickCount, setClickCount] = useState(0); usePathChangeEffect(() => { const body = document.querySelector('body'); @@ -34,6 +35,13 @@ export const Header = () => { }; }, []); + useEffect(() => { + if (clickCount > 10) { + localStorage.setItem('critical', 'true'); + alert('이스터에그 발견'); + } + }, [clickCount]); + return ( <> @@ -67,7 +75,13 @@ export const Header = () => { Xquare Infra - {email ? email : ''} + { + setClickCount((prev) => prev + 1); + }} + > + {email ? email : ''} + )} diff --git a/src/pages/Team/deploy/Container/NoneContainer.tsx b/src/pages/Team/deploy/Container/NoneContainer.tsx index 9b1ed61..c9d385d 100644 --- a/src/pages/Team/deploy/Container/NoneContainer.tsx +++ b/src/pages/Team/deploy/Container/NoneContainer.tsx @@ -120,6 +120,7 @@ export const TeamDeployNoneContainer = () => { prod: requestData.prod, stag: requestData.stag, language: requestData.language, + critical_service: Boolean(localStorage.getItem('critical')) ?? false, }); setTimeout(() => { diff --git a/src/utils/types/containerType.ts b/src/utils/types/containerType.ts index defb159..789a36f 100644 --- a/src/utils/types/containerType.ts +++ b/src/utils/types/containerType.ts @@ -28,4 +28,4 @@ type ConfigType = { domain: string; }; -export type ConfigPostType = { stag: ConfigType; prod: ConfigType; language: string }; +export type ConfigPostType = { stag: ConfigType; prod: ConfigType; language: string; critical_service: boolean };