|
1 | | -import Text, { Heading, Link } from '@codeday/topo/Atom/Text'; |
2 | | -import Box, { Grid } from '@codeday/topo/Atom/Box'; |
3 | | -import Button from '@codeday/topo/Atom/Button'; |
4 | | -import List, { Item } from '@codeday/topo/Atom/List'; |
| 1 | +import { Text, Heading, Link, Box, Button, List, ListItem as Item } from '@codeday/topo/Atom'; |
5 | 2 | import truncate from 'truncate'; |
6 | 3 | import { TagList } from './Tag' |
7 | 4 | import ordinal from '../../ordinal'; |
@@ -35,7 +32,15 @@ export function Match ({ match, selectedTags, onSelect, onDeselect, isSelected, |
35 | 32 | const selectedTagIds = selectedTags.map((t) => t.id); |
36 | 33 | return ( |
37 | 34 | <Box mb={8} borderColor="gray.200" borderWidth={2} borderRadius={2}> |
38 | | - <Heading p={4} as="h3" fontSize="xl" mb={2} backgroundColor="gray.100" borderBottomColor="gray.200" borderBottomWidth={2} mb={4}> |
| 35 | + <Heading |
| 36 | + p={4} |
| 37 | + as="h3" |
| 38 | + fontSize="xl" |
| 39 | + backgroundColor="gray.100" |
| 40 | + borderBottomColor="gray.200" |
| 41 | + borderBottomWidth={2} |
| 42 | + mb={4} |
| 43 | + > |
39 | 44 | {match.mentors.map(MentorHeading).join(' / ')} |
40 | 45 | {match.mentors.filter((m) => m.profile?.timezone).length > 0 && ( |
41 | 46 | <Text mb={0} fontSize="md" bold>Timezone: {match.mentors.map((m) => m.profile?.timezone).join(', ')}</Text> |
@@ -93,7 +98,7 @@ export function Match ({ match, selectedTags, onSelect, onDeselect, isSelected, |
93 | 98 | <Box mb={8} mr={4} ml={4}> |
94 | 99 | <Button |
95 | 100 | onClick={() => isSelected ? onDeselect(match) : onSelect(match)} |
96 | | - variantColor={isSelected ? 'red' : 'green'} |
| 101 | + colorScheme={isSelected ? 'red' : 'green'} |
97 | 102 | variant={isSelected ? 'outline' : 'solid'} |
98 | 103 | > |
99 | 104 | {isSelected ? 'Undo Selection' : 'Add to My Ranking'} |
|
0 commit comments