Skip to content

Commit

Permalink
refactor: update supportedExts type in SupportExtPopOver and Thumbnai…
Browse files Browse the repository at this point in the history
…lUpload components
  • Loading branch information
powaaaaa committed Aug 6, 2024
1 parent 4ae3a45 commit a810fbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Props> = ({ supportedExts }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ export const ThumbnailUpload: FC<Props> = ({
<Center className="h-full -z-20 absolute flex flex-col">
<div
className={cn('bg-pale-red/25 w-full absolute h-0 bottom-0 -z-30', {
'h-full': thumbnailUrl != '',
'h-full': thumbnailUrl !== '',
})}
/>
<Typography variant="body1">
クリック または ドラッグ&ドロップ
</Typography>
<Typography variant="body2" className="text-gray-400">
{thumbnailUrl != ''
{thumbnailUrl !== ''
? 'サムネイルをアップロード済み'
: 'サムネイルをアップロードしてください'}
</Typography>
Expand Down

0 comments on commit a810fbd

Please sign in to comment.