mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Create shared Picture components and use them in sellout app
This commit is contained in:
1 parent
bdadf052c5
commit
6de92e3a7a
5 files changed
+71
-13
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import { makeStyles } from '@material-ui/core';
|
||||
|
||||
interface IProps {
|
||||
src: string,
|
||||
alt: string
|
||||
}
|
||||
|
||||
const useStyles = makeStyles({
|
||||
root: {
|
||||
width: '100%',
|
||||
objectFit: 'contain'
|
||||
}
|
||||
});
|
||||
|
||||
export const PictureResponsive = ({ src, alt }: IProps) => {
|
||||
return <img className={useStyles().root} src={src} alt={alt} />;
|
||||
};
|
||||
Reference in new issue
Block a user