From a810fbdca3d2b2cd1526229c1f96a9ecfbdce2dc Mon Sep 17 00:00:00 2001 From: Nakamura Yuki <111046707+powaaaaa@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:32:37 +0900 Subject: [PATCH] refactor: update supportedExts type in SupportExtPopOver and ThumbnailUpload components --- .../WorkEdit/presentations/items/SupportExtPopOver.tsx | 5 ++++- .../WorkEdit/presentations/items/ThumbnailUpload.tsx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/domains/Work/components/WorkEdit/presentations/items/SupportExtPopOver.tsx b/src/domains/Work/components/WorkEdit/presentations/items/SupportExtPopOver.tsx index b65de15..53a811c 100644 --- a/src/domains/Work/components/WorkEdit/presentations/items/SupportExtPopOver.tsx +++ b/src/domains/Work/components/WorkEdit/presentations/items/SupportExtPopOver.tsx @@ -13,7 +13,10 @@ import { import { Typography } from '@/components/ui/Typography'; type Props = { - supportedExts: { category: string; exts: string[] }[]; + supportedExts: readonly { + category: string; + exts: readonly string[]; + }[]; }; export const SupportExtPopOver: FC = ({ supportedExts }) => ( diff --git a/src/domains/Work/components/WorkEdit/presentations/items/ThumbnailUpload.tsx b/src/domains/Work/components/WorkEdit/presentations/items/ThumbnailUpload.tsx index 5ea09f4..6f90b63 100644 --- a/src/domains/Work/components/WorkEdit/presentations/items/ThumbnailUpload.tsx +++ b/src/domains/Work/components/WorkEdit/presentations/items/ThumbnailUpload.tsx @@ -39,14 +39,14 @@ export const ThumbnailUpload: FC = ({
クリック または ドラッグ&ドロップ - {thumbnailUrl != '' + {thumbnailUrl !== '' ? 'サムネイルをアップロード済み' : 'サムネイルをアップロードしてください'}