Skip to content

Commit

Permalink
Merge pull request #276 from Nexters/feat/add-landing-page-popup
Browse files Browse the repository at this point in the history
feat: 팝업 뷰 타입에 LANDING 값 추가 및 랜딩페이지에서 팝업 노출 추가
  • Loading branch information
hexdrinker authored Feb 2, 2025
2 parents fd09b68 + 4e3a14b commit 369466a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/admin/src/pages/Landing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ import { Footer } from '@boolti/ui';

import { Header, KeyVisual, MoreInformation, OrganizerSection, UserSection } from './components';
import Styled from './LandingPage.styles';
import { usePopup } from '@boolti/api';
import usePopupDialog from '~/hooks/usePopupDialog';

const LandingPage = () => {
const { data: popupData } = usePopup('HOME');
usePopupDialog(popupData);
return (
<>
<Styled.Container>
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/types/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export interface Popup {
endDate: string;
}

export type PopupViewType = 'HOME' | 'SHOW';
export type PopupViewType = 'HOME' | 'SHOW' | 'LANDING';

0 comments on commit 369466a

Please sign in to comment.