Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Added image to round chair #375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added NewImages/melody.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion src/Containers/Chair/Chair.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ export interface IChair {
) => void;
}

const AcceptImage = () => {
return (
<div>
<img src='https://image.shutterstock.com/image-photo/image-250nw-1081879181.jpg' height={30} width={30} alt={'image'}/>
</div>
)
}
/**
* Primary UI component for user interaction
*/
Expand Down Expand Up @@ -138,10 +145,11 @@ export const Chair: React.FC<IChair> = ({
case 'AddTableButton':
return <div />;
case 'TableForManagement':
if (isRound) {
if (isRound && isSeated) {
return (
<RoundChairText relativeSize={relativeSize}>
{occupiedBy}
{AcceptImage()}
</RoundChairText>
);
}
Expand Down