Skip to content

Commit

Permalink
Remove legacy image import
Browse files Browse the repository at this point in the history
  • Loading branch information
KW86022 authored and KW86022 committed Oct 23, 2024
1 parent 091987e commit a23c795
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
21 changes: 7 additions & 14 deletions frontend/src/common/EmptyBlob.tsx
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>
)
}
2 changes: 1 addition & 1 deletion lib/landing/src/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Tooltip from '@mui/material/Tooltip'
import MenuItem from '@mui/material/MenuItem'
import GitHubIcon from '@mui/icons-material/GitHub'
import Link from './Link'
import Image from 'next/legacy/image'
import Image from 'next/image'
import imageLoader from './imageLoader'

import bailoLogo from '../public/Bailo-logo-reverse.png'
Expand Down
2 changes: 1 addition & 1 deletion lib/landing/src/Wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import CssBaseline from '@mui/material/CssBaseline'
import { styled, ThemeProvider, useTheme } from '@mui/material/styles'
import Toolbar from '@mui/material/Toolbar'
import Head from 'next/head'
import Image from 'next/legacy/image'
import Image from 'next/image'
import Link from './Link'
import imageLoader from './imageLoader'
import { Button, IconButton, Tooltip } from '@mui/material'
Expand Down

0 comments on commit a23c795

Please sign in to comment.