Skip to content

Commit

Permalink
Feat: 브랜딩 스탭을 마스터 권한에 추가하다
Browse files Browse the repository at this point in the history
  • Loading branch information
kikiyeom committed Jan 28, 2024
1 parent 0b392de commit 70f01bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/store/login.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { atom } from 'recoil';
import { LoginResponse, MemberPositionType } from '@/types/dto';
import { LoginResponse, MemberPosition, MemberPositionType } from '@/types/dto';
import { TeamType, RoleType } from '@/components/common/UserProfile/UserProfile.component';
import { selectorWithRefresher } from './recoil';
import { ScoreType } from '@/components/ActivityScore';

Check failure on line 5 in src/store/login.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'ScoreType' is defined but never used
Expand Down Expand Up @@ -38,7 +38,12 @@ export const $profile = selectorWithRefresher<[string, string, MemberPositionTyp
},
});

const MASTER_SCORE_TYPES = [ScoreType.MASHUP_LEADER, ScoreType.MASHUP_SUBLEADER] as string[];
const MASTER_SCORE_TYPES = [
MemberPosition.mashupLeader,
MemberPosition.mashupSubLeader,
MemberPosition.brandingLeader,
MemberPosition.brandingSubLeader,
] as string[];

export const $isMaster = selectorWithRefresher<boolean>({
key: 'isMaster',
Expand Down
3 changes: 2 additions & 1 deletion src/types/dto/adminMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export const MemberPosition = {
mashupSubLeader: 'MASHUP_SUBLEADER',
brandingLeader: 'BRANDING_LEADER',
brandingSubLeader: 'BRANDING_SUBLEADER',
brandingMember: 'BRANDING_MEMBER',
brandingHelper: 'BRANDING_HELPER',
brandingMember: 'BRANDING_MEMBER', // deprecated
springLeader: 'SPRING_LEADER',
springSubLeader: 'SPRING_SUBLEADER',
springHelper: 'SPRING_HELPER',
Expand Down

0 comments on commit 70f01bf

Please sign in to comment.