|
1 | | -import { CardLink, CardItemWithActions } from 'src/components/Elements' |
2 | | -import { Attributes } from 'src/lib/analytics' |
3 | | -import { BaseItemPropsType, Conference } from 'src/types' |
4 | | -import { MdAccessTime } from 'react-icons/md' |
5 | | -import { ColoredLanguagesBadge } from 'src/components/Elements' |
6 | 1 | import { flag } from 'country-emoji' |
7 | 2 | import { IoIosPin } from 'react-icons/io' |
| 3 | +import { MdAccessTime } from 'react-icons/md' |
8 | 4 | import { RiCalendarEventFill } from 'react-icons/ri' |
| 5 | +import { CardItemWithActions, CardLink, ColoredLanguagesBadge } from 'src/components/Elements' |
| 6 | +import { Attributes } from 'src/lib/analytics' |
9 | 7 | import { useUserPreferences } from 'src/stores/preferences' |
| 8 | +import { BaseItemPropsType, Conference } from 'src/types' |
10 | 9 |
|
11 | 10 | const ConferencesItem = ({ item, index, analyticsTag }: BaseItemPropsType<Conference>) => { |
12 | 11 | const { listingMode } = useUserPreferences() |
@@ -72,22 +71,20 @@ const ConferencesItem = ({ item, index, analyticsTag }: BaseItemPropsType<Confer |
72 | 71 | </CardLink> |
73 | 72 | {listingMode === 'normal' ? ( |
74 | 73 | <> |
75 | | - <div className="rowDescription"> |
76 | | - <span className="rowItem"> |
77 | | - <IoIosPin className="rowItemIcon" /> {ConferenceLocation()} |
| 74 | + <div className="m-0 mt-2 flex flex-row flex-wrap items-center gap-x-4"> |
| 75 | + <span className="flex items-center gap-0.5 text-xs text-ht-caption"> |
| 76 | + <IoIosPin /> {ConferenceLocation()} |
78 | 77 | </span> |
79 | | - <span className="rowItem"> |
80 | | - <MdAccessTime className="rowItemIcon" /> {ConferenceDate()} |
| 78 | + <span className="flex items-center gap-0.5 text-xs text-ht-caption"> |
| 79 | + <MdAccessTime /> {ConferenceDate()} |
81 | 80 | </span> |
82 | 81 | </div> |
83 | | - <div className="rowDetails"> |
84 | | - <ColoredLanguagesBadge languages={[item.tag]} /> |
85 | | - </div> |
| 82 | + <ColoredLanguagesBadge languages={[item.tag]} /> |
86 | 83 | </> |
87 | 84 | ) : ( |
88 | | - <div className="rowDescription"> |
89 | | - <span className="rowItem"> |
90 | | - <MdAccessTime className="rowItemIcon" /> {ConferenceDate()} |
| 85 | + <div className="m-0 mt-2"> |
| 86 | + <span className="flex items-center gap-0.5 text-xs text-ht-caption"> |
| 87 | + <MdAccessTime /> {ConferenceDate()} |
91 | 88 | </span> |
92 | 89 | </div> |
93 | 90 | )} |
|
0 commit comments