Skip to content

Commit

Permalink
Feat: 기계공학부 예외처리
Browse files Browse the repository at this point in the history
  • Loading branch information
KimCookieYa committed Feb 19, 2024
1 parent 573c5a4 commit b560cb0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/main/DepartmentSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ import { getDepartmentBoard } from "../../apis/department";
import { Department } from "../../@types/page";

function DepartmentBoard({ data }: { data: Department }) {
const url =
data.code === "me"
? "https://me.pusan.ac.kr/new/sub05/sub01_01.asp"
: `https://${data.code}.pusan.ac.kr/${data.code}/index.do`;
return (
<a
href={`https://${data.code}.pusan.ac.kr/${data.code}/index.do`}
target="_blank"
>
<a href={url} target="_blank">
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
Expand Down

0 comments on commit b560cb0

Please sign in to comment.