Skip to content

Commit

Permalink
Merge pull request #215 from Nexters/develop
Browse files Browse the repository at this point in the history
[운영배포] 등록된 팀 정보 있는 경우 문구 미노출 분기 추가
  • Loading branch information
alstn2468 authored Oct 10, 2024
2 parents 9065666 + ee974d5 commit e85030c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import ShowCastInfoFormDialogContent, {
} from '../ShowCastInfoFormDialogContent';

interface Props {
hasPreviousCastInfo?: boolean;
onSave: (value: TempShowCastInfoFormInput) => Promise<void>;
}

const ShowCastInfoFormContent = ({ onSave }: Props) => {
const ShowCastInfoFormContent = ({ hasPreviousCastInfo = false, onSave }: Props) => {
const dialog = useDialog();

const onClick = () => {
Expand Down Expand Up @@ -45,8 +46,12 @@ const ShowCastInfoFormContent = ({ onSave }: Props) => {
</Styled.ShowInfoFormTitle>
<Styled.ShowInfoFormSubtitle>
출연진 정보를 팀 단위로 등록해 주세요.
<br />
정보는 공연 등록 이후에도 <strong>수정 및 추가</strong>할 수 있어요.
{!hasPreviousCastInfo && (
<>
<br />
정보는 공연 등록 이후에도 <strong>수정 및 추가</strong>할 수 있어요.
</>
)}
</Styled.ShowInfoFormSubtitle>
</Styled.ShowInfoFormGroupInfo>
<Styled.DesktopCastInfoRegisterButton
Expand Down
1 change: 1 addition & 0 deletions apps/admin/src/pages/ShowInfoPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ const ShowInfoPage = () => {
<Styled.ShowInfoFormDivider />
<Styled.ShowInfoFormContent>
<ShowCastInfoFormContent
hasPreviousCastInfo={castTeamList.length > 0}
onSave={async ({ name, members }: TempShowCastInfoFormInput) => {
await postCastTeams.mutateAsync(
{
Expand Down

0 comments on commit e85030c

Please sign in to comment.