-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
139 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import React from 'react' | ||
import { Th, Tr, PopoverTrigger, Td } from '@chakra-ui/react' | ||
|
||
const ReporterTableRow = (props) => { | ||
const { heading, reporter } = props | ||
|
||
return ( | ||
<Tr borderTopWidth="2px" borderBottomWidth="2px"> | ||
<Th | ||
w="185px" | ||
fontSize={{ base: 'xs', md: 'sm' }} | ||
p={{ | ||
base: '4px 4px', | ||
sm: '8px 8px', | ||
lg: '12px 24px', | ||
}} | ||
> | ||
{heading} | ||
</Th> | ||
|
||
{!reporter ? ( | ||
<Td | ||
fontSize={{ base: 'sm', md: 'md' }} | ||
p={{ | ||
base: '4px 4px', | ||
sm: '8px 8px', | ||
lg: '12px 24px', | ||
}} | ||
> | ||
No Reporter | ||
</Td> | ||
) : ( | ||
<PopoverTrigger> | ||
<Td | ||
fontSize={{ base: 'sm', md: 'md' }} | ||
p={{ | ||
base: '4px 4px', | ||
sm: '8px 8px', | ||
lg: '12px 24px', | ||
}} | ||
cursor="pointer" | ||
> | ||
{reporter.displayName} | ||
</Td> | ||
</PopoverTrigger> | ||
)} | ||
</Tr> | ||
) | ||
} | ||
|
||
export default ReporterTableRow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters