Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 기본 숨은 그림 찾기 페이지 구현, 기존 store 로직 수정, 공통 컴포넌트 구현 #8

Merged
merged 18 commits into from
Jul 30, 2024

Conversation

Dunkkkk
Copy link
Collaborator

@Dunkkkk Dunkkkk commented Jul 30, 2024

구현사항

  • 숨은 그림찾기 Page 구현 및 게임 로직 구현
  • SmileBadge 공통 컴포넌트 구현
  • useExistState 라는 기존에 있던 state를 접근하는 hook 구현

사용법

useExistState

const state = useExistState(initFindingGameState);

위처럼 부모가 먼저 state를 선언하면 자식 컴포넌트도 위처럼 사용할 수 있다.
-> 추후 로직구현 방향 변경 예정 -> 부모가 가지고 있으면 뭔가 컴포넌트 단의 개발이 덜 됨 -> 따라서 부모도 자식의 hook등록시점에 부를수 있도록 수정 예정

SmileBadge

  isSelected = false,
  width,
  height,
  badgeType,
const badgeTypeList = [
    "blue",
    "orange",
    "yellow",
    "yellow_wink",
    "white",
    "blue_line",
    "orange_line",
    "yellow_line",
    "orange_sad",
  ];

badgetype에 따른 대응은 위와같음 (디자인 시스템에 순서를 따름)

와 같은 props를 가지고 있음 이는 smileBadge를 만들어주는 component

미완료 사항

  • 게임이 완료되었을 때 분기처리 및 관련 component

Copy link
Contributor

@minani-0621 minani-0621 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오늘 작업량 무엇,, 굿굿~

@minani-0621 minani-0621 merged commit 2a6ae6b into develop Jul 30, 2024
@minani-0621 minani-0621 deleted the CC-106 branch July 30, 2024 09:11
@minani-0621 minani-0621 added the Feat New feature label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants