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

[FE] 상세페이지 웹 접근성 추가(#645) #686

Merged
merged 13 commits into from
Oct 24, 2024
Merged
Next Next commit
feat: RoomInfoCard에 displayedKeywords 추가
chlwlstlf committed Oct 23, 2024
commit f6b52fb926714cd8c93539d4d5d9b995ec2aaf60
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@ import { theme } from "@/styles/theme";
import { displayLeftTime, formatDateTimeString, formatDday } from "@/utils/dateFormatter";

const RoomInfoCard = ({ roomInfo }: { roomInfo: RoomInfo }) => {
const displayedKeywords = roomInfo.keywords.filter((keyword) => keyword !== "");

return (
<S.RoomInfoCardContainer>
<S.ClassificationBadgeWrapper>
@@ -34,10 +36,10 @@ const RoomInfoCard = ({ roomInfo }: { roomInfo: RoomInfo }) => {

<S.RoomContentBox>
<S.RoomTagBox>
{roomInfo.keywords.length === 1 ? (
{displayedKeywords.length === 0 ? (
<S.NoKeywordText>지정된 키워드 없음</S.NoKeywordText>
) : (
roomInfo.keywords.map((keyword) => (
displayedKeywords.map((keyword) => (
<Label
key={keyword}
type="KEYWORD"