Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/mocks/handlers/customize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const customizeHandlers = [
);

return HttpResponse.json({
id: 1,
info: {
name: '나의 자유토론 테이블',
type: 'CUSTOMIZE',
Expand Down
3 changes: 1 addition & 2 deletions src/page/TableComposition/TableComposition.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function TestWrapper({

{/* 실제로 이동하고 싶은 /overview 경로 - 테스트용 컴포넌트 */}
<Route
path="/overview/parliamentary/1"
path="/overview/customize/1"
element={<h1 data-testid="overview-page">Overview Page</h1>}
/>
</Routes>
Expand Down Expand Up @@ -55,7 +55,6 @@ describe('TableComposition', () => {
name: '토론 정보를 설정해주세요',
}),
);
expect(screen.getByText('토론 유형')).toBeInTheDocument();
expect(screen.getByRole('button', { name: '다음' })).toBeInTheDocument();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import HeaderTitle from '../../../../components/HeaderTitle/HeaderTitle';
import LabeledCheckbox from '../../../../components/LabledCheckBox/LabeledCheckbox';
import DefaultLayout from '../../../../layout/defaultLayout/DefaultLayout';
import { ParliamentaryInfo, CustomizeInfo } from '../../../../type/type';
import DropdownForDebateType from '../DropdownForDebateType/DropdownForDebateType';

type ExtendedDebateInfo = ParliamentaryInfo | CustomizeInfo;

Expand Down Expand Up @@ -79,6 +78,7 @@ export default function TableNameAndType(props: TableNameAndTypeProps) {
onClear={() => clearField('agenda')}
placeholder="토론 주제를 입력해주세요"
/>
{/**
{!isEdit && (
<>
<label className="flex items-center text-base font-semibold md:text-2xl">
Expand All @@ -91,7 +91,9 @@ export default function TableNameAndType(props: TableNameAndTypeProps) {
}
/>
</>
)}
)
}
*/}
{isCustomize(info) && (
<>
<label className="flex items-center text-base font-semibold md:text-2xl">
Expand Down
4 changes: 3 additions & 1 deletion src/page/TableComposition/hook/useTableFrom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const useTableFrom = (
info: {
name: '',
agenda: '',
type: 'PARLIAMENTARY',
type: 'CUSTOMIZE',
prosTeamName: '찬성',
consTeamName: '반대',
warningBell: true,
finishBell: true,
},
Expand Down
Loading