Extract list card content

This commit is contained in:
schroda
2025-04-25 01:05:43 +02:00
parent c0ab5f93a1
commit 1b7338f5e3
7 changed files with 42 additions and 60 deletions

View File

@@ -7,7 +7,6 @@
*/
import Card from '@mui/material/Card';
import CardContent from '@mui/material/CardContent';
import CardActionArea from '@mui/material/CardActionArea';
import Box from '@mui/material/Box';
import Stack from '@mui/material/Stack';
@@ -19,6 +18,7 @@ import { SpecificMangaCardProps } from '@/modules/manga/Manga.types.ts';
import { Mangas } from '@/modules/manga/services/Mangas.ts';
import { MangaOptionButton } from '@/modules/manga/components/MangaOptionButton.tsx';
import { ListCardAvatar } from '@/modules/core/components/cards/list/ListCardAvatar.tsx';
import { ListCardContent } from '@/modules/core/components/cards/list/ListCardContent';
export const MangaListCard = memo(
({
@@ -63,14 +63,10 @@ export const MangaListCard = memo(
},
}}
>
<CardContent
<ListCardContent
sx={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
padding: 1.5,
position: 'relative',
gap: 1,
}}
>
<ListCardAvatar
@@ -117,7 +113,7 @@ export const MangaListCard = memo(
asCheckbox
/>
</Stack>
</CardContent>
</ListCardContent>
</CardActionArea>
</Card>
);