From ab24530b5bfbb4aee22072c25040a3b8e315525e Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 26 Sep 2025 17:15:11 +0800 Subject: [PATCH] application submission no issue check --- src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js b/src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js index ae90f5d..43dd481 100644 --- a/src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js +++ b/src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js @@ -1,4 +1,5 @@ // material-ui +import React from 'react'; import { Grid, Typography, @@ -56,6 +57,8 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList }) => const [isOnlyOnlinePayment, setOnlyOnlinePayment] = useState(); const navigate = useNavigate(); + const hasOptions = React.Children.count(selections) > 0; + const BackgroundHead = { backgroundImage: `url(${titleBackgroundImg})`, width: 'auto', @@ -275,6 +278,9 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList }) => : + + {hasOptions ? ( +
{ @@ -602,6 +608,7 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList }) =>
+ ) : null}
}