aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesView.tsx
diff options
context:
space:
mode:
authorSophie Zhang <sophie_zhang@brown.edu>2023-12-07 00:16:32 -0500
committerSophie Zhang <sophie_zhang@brown.edu>2023-12-07 00:16:32 -0500
commit6c7e97e2aebf79307453bcee94522381ff4c7ba7 (patch)
treeadd9adb93b5d7980ddb9b57b6508a05117d7044d /src/client/views/PropertiesView.tsx
parentf59e343553878029d846e5eae2963fc9c3481b13 (diff)
font color fix
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r--src/client/views/PropertiesView.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index e48574857..899cca4ec 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -1239,10 +1239,9 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
style={{ display: 'flex', gap: '4px', backgroundColor: this.selectedStyle === i ? StrCast(Doc.UserDoc().userVariantColor) : '#00000000' }}
onClick={() => this.styleCollection(i)}>
<div style={{ width: '24px', height: '24px', backgroundColor: style.collectionBackgroundColor, borderRadius: '2px' }}></div>
- {ExtractColors.sortColors(style.documentsWithColors.map(doc => ExtractColors.hexToFinalColor(doc.color))).map(c => (
- <div key={c.hex} style={{ width: '24px', height: '24px', backgroundColor: c.hex, borderRadius: '2px' }}></div>
+ {ExtractColors.sortColors(style.documentsWithColors.map(doc => ExtractColors.hexToFinalColor(doc.color))).map((c, i) => (
+ <div key={i} style={{ width: '24px', height: '24px', backgroundColor: c.hex, borderRadius: '2px' }}></div>
))}
- {/* <FaRegHeart onClick={() => {}}/> */}
</div>
))}
{this.loadingStyles && 'Generating styles...'}