Skip to content

Commit

Permalink
Merge pull request #214 from Nexters/fix/cast-info-description
Browse files Browse the repository at this point in the history
fix: 등록된 팀 정보 있는 경우 문구 미노출
  • Loading branch information
alstn2468 authored Oct 10, 2024
2 parents b9cb0eb + 4079528 commit ee974d5
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 ee974d5

Please sign in to comment.