Skip to content

Commit

Permalink
chore: ui improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-eof committed Apr 30, 2023
1 parent 361ea8b commit d5d3d31
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/components/job/ViewOfferRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,19 @@ export default function ViewOfferRequest({}: Props) {
onOpen();
}

function calculateTitle(type: number | undefined): import('react').ReactNode {
if (type === 0) {
return 'Offers';
}
if (type === 1) {
return 'Requests';
}
return '';
}

return (
<>
<Title title={job?.title || ''} />
<Title title={job?.type === 0 ? 'Offer' : 'Request'} />
<Card
direction={{ base: 'column', sm: 'row' }}
overflow="hidden"
Expand Down Expand Up @@ -114,14 +124,14 @@ export default function ViewOfferRequest({}: Props) {
<SimpleGrid columns={{ base: 1, md: 2 }} w={'full'}>
<Stack spacing={4} w={'full'}>
<CardBody>
{/* <Heading
<Heading
cursor={'pointer'}
color={'green.400'}
_hover={{ color: 'greeen.500' }}
size="md"
>
{job && job.title}{' '}
</Heading> */}
</Heading>
<Box fontSize={'0.8em'}>
by {job && job.author?.firstname} {job && job.author?.lastname}{' '}
(@
Expand Down

0 comments on commit d5d3d31

Please sign in to comment.