Skip to content

Commit

Permalink
fix: ui
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-eof committed Apr 27, 2023
1 parent a2ff878 commit 0495d1e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/ViewOfferRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
import GenericService from '../service/GenericService';
import Job from '../dto/Job';
import { Card, CardBody } from '@chakra-ui/card';
import { Box, Text } from '@chakra-ui/react';
import { Box, Flex, Text } from '@chakra-ui/react';
import { useParams } from 'react-router-dom';

interface Props {}
Expand All @@ -23,13 +23,15 @@ export default function ViewOfferRequest({}: Props) {
<Text>Description: {job && job.description}</Text>
<Text>Status: {job && job.status}</Text>
<Text>Type: {job && job.type}</Text>
{job &&
job.images &&
job.images.map((image, idx) => (
<Box key={idx}>
<img src={image} />
</Box>
))}
<Flex>
{job &&
job.images &&
job.images.map((image, idx) => (
<Box key={idx} w={'64px'} h={'64px'}>
<img src={image} />
</Box>
))}
</Flex>
</CardBody>
</Card>
);
Expand Down

0 comments on commit 0495d1e

Please sign in to comment.