From b2d45c33098e3d386102d08ba0b3f5c7f2b801da Mon Sep 17 00:00:00 2001 From: Kubosaka Date: Fri, 22 Mar 2024 16:23:44 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=E3=83=9C=E3=82=BF=E3=83=B3=E3=81=AE?= =?UTF-8?q?=E3=83=87=E3=82=B6=E3=82=A4=E3=83=B3=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sponsoractivities/DetailPage2.tsx | 100 +++++++++--------- 1 file changed, 49 insertions(+), 51 deletions(-) diff --git a/view/next-project/src/components/sponsoractivities/DetailPage2.tsx b/view/next-project/src/components/sponsoractivities/DetailPage2.tsx index c821069bb..72ec940a2 100644 --- a/view/next-project/src/components/sponsoractivities/DetailPage2.tsx +++ b/view/next-project/src/components/sponsoractivities/DetailPage2.tsx @@ -161,7 +161,7 @@ const DetailPage2: FC = (props) => {
-
+

広告の状況

@@ -169,58 +169,56 @@ const DetailPage2: FC = (props) => {

-
- {activityInformation?.fileType === 'application/pdf' && - activityInformation?.fileName && ( - - )} - {activityInformation.fileType !== 'application/pdf' && - activityInformation.fileName && ( - Picture of the author - )} -
- {activityInformation.fileName !== '' && ( -
- { - setEditActivityInformationId(index); - setIsOpen(true); - }} - > - 変更 - - - fileURLs && download(fileURLs[index], activityInformation.fileName || '') - } - > - ダウンロード - -
+
+
+
+ {activityInformation?.fileType === 'application/pdf' && + activityInformation?.fileName && ( + )} - {activityInformation.fileName === '' && ( -
- { - setEditActivityInformationId(index); - setIsOpen(true); - }} - > - 広告登録 - -
+ {activityInformation.fileType !== 'application/pdf' && + activityInformation.fileName && ( + Picture of the author )} -
+ +
+ {activityInformation.fileName !== '' && ( +
+ { + setEditActivityInformationId(index); + setIsOpen(true); + }} + > + 変更 + + + fileURLs && download(fileURLs[index], activityInformation.fileName || '') + } + > + ダウンロード + +
+ )} + {activityInformation.fileName === '' && ( +
+ { + setEditActivityInformationId(index); + setIsOpen(true); + }} + > + 広告登録 + +
+ )}
))}