Skip to content

Commit

Permalink
fix: 교수진에서 상세 검색결과수 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
yeolyi committed Mar 18, 2024
1 parent 57bf9c4 commit 956fbcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/[locale]/search/MemberSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function MemberSection({ keyword }: { keyword: string }) {
<Section title="구성원" size={resp.total}>
{professorList.length !== 0 && (
<>
<CircleTitle title="교수진" size={professorList.length} />
<CircleTitle title="교수진" />
<div className="ml-5 mt-7 flex gap-12">
{professorList.slice(0, 3).map((result) => {
return <MemberCell key={result.id} {...result} />;
Expand All @@ -34,7 +34,7 @@ export default async function MemberSection({ keyword }: { keyword: string }) {
{professorList.length !== 0 && staffList.length !== 0 && <Divider />}
{staffList.length !== 0 && (
<>
<CircleTitle title="행정직원" size={staffList.length} />
<CircleTitle title="행정직원" />
<div className="ml-5 mt-7 flex gap-12">
{staffList.slice(0, 3).map((result) => {
return <MemberCell key={result.id} {...result} />;
Expand Down
5 changes: 3 additions & 2 deletions app/[locale]/search/helper/CircleTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
export default function CircleTitle({ title, size }: { title: string; size: number }) {
export default function CircleTitle({ title, size }: { title: string; size?: number }) {
// TODO: 번역 적용
// const t = useTranslations();
return (
<div className="flex items-center gap-2">
<OrangeCircle />
<h3 className=" text-[1.0625rem] font-semibold leading-loose text-neutral-950">
{title}({size})
{title}
{size ? `(${size})` : ''}
</h3>
</div>
);
Expand Down

0 comments on commit 956fbcf

Please sign in to comment.