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

공연 생성 페이지 QA 반영 #261

Merged
merged 5 commits into from
Jan 12, 2025
5 changes: 0 additions & 5 deletions apps/admin/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
QRPage,
OAuthKakaoPage,
HomePage,
ShowAddCompletePage,
SignUpCompletePage,
SitePolicyPage,
GiftRegisterPage,
Expand Down Expand Up @@ -131,10 +130,6 @@ const privateRoutes = [
{ path: PATH.SHOW_ADD, element: <ShowAddPage step="basic" /> },
{ path: PATH.SHOW_ADD_DETAIL, element: <ShowAddPage step="detail" /> },
{ path: PATH.SHOW_ADD_SALES, element: <ShowAddPage step="sales" /> },
{
path: PATH.SHOW_ADD_COMPLETE,
element: <ShowAddCompletePage />,
},
{
path: '/',
element: (
Expand Down
4 changes: 2 additions & 2 deletions apps/admin/src/components/ShowDetailLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ const TabItem = ({ type }: TabItemProps) => {
<Styled.TabItem
active={match !== null}
id={type === 'SETTLEMENT' ? 'settlement-page-tooltip' : undefined}
onClick={() => {
onClick={async () => {
if (!params.showId) return;

if (middleware && !middleware()) {
if (middleware && !(await middleware())) {
return;
}

Expand Down
1 change: 0 additions & 1 deletion apps/admin/src/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const PATH = {
SHOW_ADD: '/show/add',
SHOW_ADD_DETAIL: '/show/add/detail',
SHOW_ADD_SALES: '/show/add/sales',
SHOW_ADD_COMPLETE: '/show/add/complete',

SHOW_INFO: '/show/:showId/info',
SHOW_TICKET: '/show/:showId/ticket',
Expand Down

This file was deleted.

99 changes: 0 additions & 99 deletions apps/admin/src/pages/ShowAddCompletePage/index.tsx

This file was deleted.

12 changes: 10 additions & 2 deletions apps/admin/src/pages/ShowAddPage/ShowAddPage.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,22 @@ const ProcessIndicator = styled.div`
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 40px;
margin-bottom: 16px;

${mq_lg} {
margin-bottom: 28px;
}
`;

const CardDescription = styled.p`
${({ theme }) => theme.typo.b1};
color: ${({ theme }) => theme.palette.grey.g60};
text-align: center;
margin-bottom: 40px;
margin-bottom: 32px;

${mq_lg} {
margin-bottom: 40px;
}
`;

const ShowAddForm = styled.form`
Expand Down
6 changes: 4 additions & 2 deletions apps/admin/src/pages/ShowAddPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
ShowDetailInfoFormInputs,
ShowSalesInfoFormInputs,
} from '~/components/ShowInfoFormContent/types';
import { PATH } from '~/constants/routes';
import { HREF, PATH } from '~/constants/routes';

import Styled from './ShowAddPage.styles';
import ShowCastInfoFormContent from '~/components/ShowInfoFormContent/ShowCastInfoFormContent';
Expand Down Expand Up @@ -127,7 +127,8 @@ const ShowAddPage = ({ step }: ShowAddPageProps) => {
return;
}

navigate(PATH.SHOW_ADD_COMPLETE);
toast.success('공연 등록을 완료했습니다.')
navigate(HREF.SHOW_INFO(showId));
};

const basicStepContent = (
Expand Down Expand Up @@ -190,6 +191,7 @@ const ShowAddPage = ({ step }: ShowAddPageProps) => {
</Styled.ShowInfoFormContent>
<Styled.ShowInfoFormContent style={{ marginBottom: '32px' }}>
<ShowCastInfoFormContent
initialCastTeamList={castTeamList}
onChange={(data) => {
setCastTeamList(data);
}}
Expand Down
Loading
Loading