feat: 게시물 탭 이름을 채팅으로 변경
@f3cc0dd7c04e944f2994d07df4daf3f3063b9fb8
--- frontend/src/components/ChannelPosts.tsx
+++ frontend/src/components/ChannelPosts.tsx
... | ... | @@ -104,7 +104,7 @@ |
| 104 | 104 |
) |
| 105 | 105 |
} |
| 106 | 106 |
|
| 107 |
-/** 기관관리 상세의 게시물 탭. 선택한 채널의 최근 게시글을 3초 간격으로 폴링해서 보여준다. */ |
|
| 107 |
+/** 기관관리 상세의 채팅 탭. 선택한 채널의 최근 게시글을 3초 간격으로 폴링해서 보여준다. */ |
|
| 108 | 108 |
export default function ChannelPosts({ org }: { org: Org }) {
|
| 109 | 109 |
const bothMissing = !org.channelIdMj && !org.channelIdLaw |
| 110 | 110 |
const [channel, setChannel] = useState<ChannelKindKey>(org.channelIdMj ? 'mj' : 'law') |
--- frontend/src/components/OrgOverview.test.tsx
+++ frontend/src/components/OrgOverview.test.tsx
... | ... | @@ -69,7 +69,7 @@ |
| 69 | 69 |
await waitFor(() => expect(mocks.getPosts).toHaveBeenCalled()) |
| 70 | 70 |
}) |
| 71 | 71 |
|
| 72 |
- it('기본 탭인 게시물은 자리표시 대신 채널 선택 화면을 보여준다', async () => {
|
|
| 72 |
+ it('기본 탭인 채팅은 자리표시 대신 채널 선택 화면을 보여준다', async () => {
|
|
| 73 | 73 |
render(<OrgOverview org={org()} />)
|
| 74 | 74 |
|
| 75 | 75 |
expect(screen.getByRole('button', { name: '문정원' })).toBeTruthy()
|
--- frontend/src/components/OrgOverview.tsx
+++ frontend/src/components/OrgOverview.tsx
... | ... | @@ -25,7 +25,7 @@ |
| 25 | 25 |
'보고서 작성', |
| 26 | 26 |
] |
| 27 | 27 |
|
| 28 |
-const TABS = ['게시물', '자료', '권리확인', '권리처리', 'RE', '타임라인', '업무메모'] |
|
| 28 |
+const TABS = ['채팅', '자료', '권리확인', '권리처리', 'RE', '타임라인', '업무메모'] |
|
| 29 | 29 |
|
| 30 | 30 |
const DISABLED_ACTIONS = ['진행단계 변경', '담당 변호사 변경', '자료 업로드', '최초 게시글 보기', '보고서 관리'] |
| 31 | 31 |
|
... | ... | @@ -192,7 +192,7 @@ |
| 192 | 192 |
</nav> |
| 193 | 193 |
</div> |
| 194 | 194 |
|
| 195 |
- {activeTab === '게시물' ? (
|
|
| 195 |
+ {activeTab === '채팅' ? (
|
|
| 196 | 196 |
<div className="mt-4 rounded-lg border border-gray-200"> |
| 197 | 197 |
<ChannelPosts key={org.id} org={org} />
|
| 198 | 198 |
</div> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?