Skip to content

Commit 11b6223

Browse files
authored
Merge pull request #431 from CodeForPhilly/support-overview-rfm-tweaks
Moved RFM category information to header
2 parents c1dfed9 + af9a3f6 commit 11b6223

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/client/src/pages/DataView360/View/components/SupportOverview.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ class SupportOverview extends Component {
2727
{ "title": "Total # of Gifts", "value": data.number_of_gifts},
2828
{ "title": "Largest Gift", "value": `$${data.largest_gift}`},
2929
{ "title": "Recurring Donor?", "value": data.is_recurring ? "Yes" : "No"},
30-
{ "title": "RFM Score", "value": data.rfm_score },
31-
{ "title": "RFM Category", "value": data.rfm_label,
32-
"rfm_color": data.rfm_color, "rfm_text_color": data.rfm_text_color }
30+
{ "title": "RFM Score", "value": data.rfm_score }
3331
// { "title": "PAWS Legacy Society?", "value": "test" }
3432
]
3533
return rows;
@@ -65,9 +63,10 @@ class SupportOverview extends Component {
6563
<Container className={classes.containerInfo}>
6664
<Grid container direction={'column'}>
6765
<Grid container className={classes.spacingRows} direction={'row'} justify='center'>
68-
<Grid item>
66+
<Grid item style={{ "background": data.rfm_color, "borderRadius": "5px", "color": data.rfm_text_color, "paddingLeft": "1rem", "paddingRight": "1rem" }}>
6967
<Typography variant={'subtitle1'}>
7068
<b>Support Overview</b>
69+
<p style={{"fontSize": "0.875rem", "textAlign": "center" }}>{data.rfm_label}</p>
7170
</Typography>
7271
</Grid>
7372
</Grid>

0 commit comments

Comments
 (0)