diff --git a/phone/src/apps/sellout/components/SelloutList/SelloutItem.tsx b/phone/src/apps/sellout/components/SelloutList/SelloutItem.tsx
index 2407704..da8a857 100644
--- a/phone/src/apps/sellout/components/SelloutList/SelloutItem.tsx
+++ b/phone/src/apps/sellout/components/SelloutList/SelloutItem.tsx
@@ -1,10 +1,10 @@
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { Button, Typography, Paper } from '@material-ui/core';
-import { ImageDisplay } from '../images/ImageDisplay';
import { ListItem } from '../../../../ui/components/ListItem';
import ChatIcon from '@material-ui/icons/Chat';
import PhoneIcon from '@material-ui/icons/Phone';
+import { PictureResponsive } from '../../../../ui/components/PictureResponsive';
const useStyles = makeStyles((theme) => ({
root: {
@@ -62,7 +62,10 @@ export const SelloutItem = (listing) => {
{listing.url ? (
-
+
) : (
No image provided{' '}
diff --git a/phone/src/apps/sellout/components/images/ImageDisplay.tsx b/phone/src/apps/sellout/components/images/ImageDisplay.tsx
deleted file mode 100644
index d8c0fa8..0000000
--- a/phone/src/apps/sellout/components/images/ImageDisplay.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import React from 'react';
-
-export const ImageDisplay = ({ imgURL }) => {
- return (
-
- );
-};
diff --git a/phone/src/ui/components/Picture.tsx b/phone/src/ui/components/Picture.tsx
new file mode 100644
index 0000000..6fa45fd
--- /dev/null
+++ b/phone/src/ui/components/Picture.tsx
@@ -0,0 +1,25 @@
+import React, { useState } from 'react';
+import { Button } from '@material-ui/core';
+import { PictureThumbnail } from './PictureThumbnail';
+import { PictureResponsive } from './PictureResponsive';
+import Modal from './Modal';
+
+interface IProps {
+ src: string;
+ alt: string;
+ size?: string;
+}
+
+export const Picture = ({ src, alt, size }: IProps) => {
+ const [visible, setVisible] = useState(false);
+ return (
+ <>
+
+ setVisible(false)}>
+
+
+ >
+ );
+};
diff --git a/phone/src/ui/components/PictureResponsive.tsx b/phone/src/ui/components/PictureResponsive.tsx
new file mode 100644
index 0000000..d25ee0d
--- /dev/null
+++ b/phone/src/ui/components/PictureResponsive.tsx
@@ -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
;
+};
diff --git a/phone/src/ui/components/PictureThumbnail.tsx b/phone/src/ui/components/PictureThumbnail.tsx
new file mode 100644
index 0000000..0d7a90b
--- /dev/null
+++ b/phone/src/ui/components/PictureThumbnail.tsx
@@ -0,0 +1,23 @@
+import React from 'react';
+import { makeStyles, Theme } from '@material-ui/core';
+
+interface IStyleProps {
+ size: string;
+}
+
+interface IProps {
+ src: string,
+ alt: string,
+ size?: string
+}
+
+const useStyles = makeStyles({
+ root: ({ size }) => ({
+ objectFit: 'contain',
+ width: size,
+ }),
+});
+
+export const PictureThumbnail = ({ src, alt, size = '3em' }: IProps) => {
+ return
;
+};