-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
KW86022
authored and
KW86022
committed
Oct 23, 2024
1 parent
091987e
commit a23c795
Showing
3 changed files
with
9 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
import { Stack } from '@mui/material' | ||
import Typography from '@mui/material/Typography' | ||
import Image from "next/image" | ||
import Image from 'next/image' | ||
|
||
type EmptyBlobProps = { | ||
text: string | ||
} | ||
|
||
export default function EmptyBlob({ text }: EmptyBlobProps) { | ||
const css = { maxWidth: '100%', height: 'auto' } | ||
|
||
return ( | ||
(<Stack spacing={1} alignItems='center'> | ||
<Image | ||
src='/emptyBlob.svg' | ||
alt='Empty blob' | ||
width={120} | ||
height={120} | ||
data-test='emptyBlobImage' | ||
style={{ | ||
maxWidth: "100%", | ||
height: "auto" | ||
}} /> | ||
<Stack spacing={1} alignItems='center'> | ||
<Image src='/emptyBlob.svg' alt='Empty blob' width={120} height={120} data-test='emptyBlobImage' style={css} /> | ||
<Typography color='text.secondary'>{text}</Typography> | ||
</Stack>) | ||
); | ||
</Stack> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters