+
+
+ {views.length > 0 ? (
+ setIsExpanded(!isExpanded)}
+ aria-label={expandedLabel}
+ className={styles.iconButton}
+ />
+ ) : (
+
+ )}
+
- ) : (
-
- )}
-
- {
- store.setObject('CLICKING_HISTORY', true);
- onClick();
- }}
- href={url}
- isCompact={true}
- className={isSelected ? undefined : styles.card}
- >
-
-
- {breadcrumbs.map((breadcrumb, index) => (
-
- {breadcrumb.text} {index !== breadcrumbs.length - 1 ? '> ' : ''}
-
- ))}
-
- {moment(time).format('h:mm A')}
- {sparklineData && (
- {
+ store.setObject('CLICKING_HISTORY', true);
+ onClick();
+ }}
+ href={url}
+ isCompact={true}
+ className={isSelected ? styles.card : cx(styles.card, styles.cardSelected)}
+ >
+
+
+ {breadcrumbs.map((breadcrumb, index) => (
+
+ {breadcrumb.text} {index !== breadcrumbs.length - 1 ? '> ' : ''}
+
+ ))}
+
+
+ {moment(time).format('h:mm A')}
+
+ {sparklineData && (
+
- )}
-
-
+ }}
+ />
+ )}
+
+
+
+ {isExpanded && (
+
+ {views.map((view, index) => {
+ return (
+ {
+ store.setObject('CLICKING_HISTORY', true);
+ onClick();
+ }}
+ isCompact={true}
+ className={view.time === selectedViewTime ? undefined : styles.subCard}
+ >
+
+ {view.name}
+ {view.description && (
+
+ {view.description}
+
+ )}
+
+
+ );
+ })}
+
+ )}