(props)
| 50 | } |
| 51 | |
| 52 | function Stereotypes (props) { |
| 53 | const { stereotypes } = props |
| 54 | |
| 55 | return ( |
| 56 | <Grid item xs={12}> |
| 57 | <Typography |
| 58 | color='textPrimary' |
| 59 | gutterBottom |
| 60 | variant='h6' |
| 61 | > |
| 62 | <Box fontWeight='fontWeightBold' mr={1} display='inline'> |
| 63 | Stereotypes |
| 64 | </Box> |
| 65 | </Typography> |
| 66 | <Grid container direction='row' marginLeft={1}> |
| 67 | { |
| 68 | stereotypes |
| 69 | .sort((a, b) => { |
| 70 | const browserNameComparison = a.browserName.localeCompare( |
| 71 | b.browserName) |
| 72 | if (browserNameComparison !== 0) { |
| 73 | return browserNameComparison |
| 74 | } else { |
| 75 | return a.browserVersion.localeCompare(b.browserVersion) |
| 76 | } |
| 77 | }) |
| 78 | .map((slotStereotype: any, idx) => { |
| 79 | return ( |
| 80 | CreateStereotypeGridItem(slotStereotype, idx) |
| 81 | ) |
| 82 | }) |
| 83 | } |
| 84 | </Grid> |
| 85 | </Grid> |
| 86 | ) |
| 87 | } |
| 88 | |
| 89 | export default Stereotypes |
nothing calls this directly
no test coverage detected