diff --git a/src/components/main/MainContents.jsx b/src/components/main/MainContents.jsx
index d58ba4c3..72034a8a 100644
--- a/src/components/main/MainContents.jsx
+++ b/src/components/main/MainContents.jsx
@@ -11,11 +11,13 @@ import { useRouter } from 'next/navigation'
import { globalLocaleStore } from '@/store/localeAtom'
import { queryStringFormatter } from '@/util/common-utils'
import MainSkeleton from '../ui/MainSkeleton'
-import { SessionContext } from '@/app/SessionProvider'
import { useMainContentsController } from '@/hooks/main/useMainContentsController'
import { QcastContext } from '@/app/QcastProvider'
+import { useSwal } from '@/hooks/useSwal'
export default function MainContents() {
+ const { swalFire } = useSwal()
+
const { getMessage } = useMessage()
const router = useRouter()
const globalLocaleState = useRecoilValue(globalLocaleStore)
@@ -125,62 +127,50 @@ export default function MainContents() {
)}
-
- {recentNoticeList.length > 0 ? (
- <>
-
{dayjs(recentNoticeList[0]?.regDt).format('YYYY.MM.DD')}
-
{recentNoticeList[0]?.title}
-
') : '' }}
- >
- >
- ) : (
-
- )}
-
+ {recentNoticeList.length > 0 ? (
+
+
{dayjs(recentNoticeList[0]?.regDt).format('YYYY.MM.DD')}
+
{recentNoticeList[0]?.title}
+
') : '' }}
+ >
+
+ ) : (
+
+
{getMessage('main.content.noBusiness')}
+
+ )}
-
- {recentFaqList.length > 0 ? (
- <>
- {recentFaqList.map((row) => {
- return (
- -
-
-
FAQ {row.totCnt - row.rowNumber}
-
{row.title}
-
{dayjs(row.regDt).format('YYYY.MM.DD')}
-
-
- )
- })}
- >
- ) : (
-
- )}
-
+ {recentFaqList.length > 0 ? (
+
+ {recentFaqList.map((row) => {
+ return (
+ -
+
+
FAQ {row.totCnt - row.rowNumber}
+
{row.title}
+
{dayjs(row.regDt).format('YYYY.MM.DD')}
+
+
+ )
+ })}
+
+ ) : (
+
+
{getMessage('main.content.noBusiness')}
+
+ )}
-