Skip to content

Commit 9ef04ed

Browse files
authored
Merge pull request #602 from CodeForPhilly/575_remove-rfm-from-client
575: remove rfm from client
2 parents e0bdfac + 62a1154 commit 9ef04ed

File tree

5 files changed

+3
-244
lines changed

5 files changed

+3
-244
lines changed

src/client/src/App.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import Refresh from './components/Refresh';
1717

1818
import useToken from './pages/Login/useToken';
1919
import Box from "@material-ui/core/Box";
20-
import {RFM} from "./pages/RFM/RFM";
2120
import UserManagement from './pages/UserManagement/UserManagement';
2221
import AlertBanner from './components/AlertBanner';
2322

@@ -146,10 +145,6 @@ function AuthenticatedApp() {
146145
<View360 access_token={access_token}/>
147146
</Route>
148147

149-
<Route path="/rfm">
150-
<RFM access_token={access_token}/>
151-
</Route>
152-
153148
<Route path="/check">
154149
<Check access_token={access_token}/>
155150
</Route>

src/client/src/components/Header.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ class Header extends Component {
3232
{this.props.headerType !== 'Login' && <Button size="large" component={RouterLink} to="/360view/search">360
3333
DataView</Button>
3434
}
35-
{this.props.headerType !== 'Login' && <Button size="large" component={RouterLink} to="/rfm">RFM
36-
</Button>
37-
}
3835
<Button size="large" component={RouterLink} to="/about">About us</Button>
3936
{this.props.headerType !== 'Login' &&
4037
<Button size="large" component={RouterLink} to="/logout">Log Out</Button>}

src/client/src/pages/DataView360/Search/Search.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,9 @@ export const Search360 = (props) => {
106106
<Box pt={2} pb={4}>
107107
<Typography>You searched for <b>{searchParticipant}</b></Typography>
108108
</Box>
109-
110109
</Grid>
111110
</Grid>
112-
<Grid container direction={"row"}>
111+
<Grid container direction="row" style={{ width: "100%", alignItems: "center", justifyContent: "center", }}>
113112
<Paper>
114113
<TableContainer className={classes.container}>
115114
<Table className={classes.table} size="small" stickyHeader aria-label="sticky table">
@@ -120,7 +119,6 @@ export const Search360 = (props) => {
120119
<TableCell width="5%">Last Name</TableCell>
121120
<TableCell width="5%">Email</TableCell>
122121
<TableCell width="10%">Mobile</TableCell>
123-
<TableCell width="10%">RFM Score</TableCell>
124122
<TableCell width="10%">Source</TableCell>
125123
<TableCell width="10%">ID in Source</TableCell>
126124
</TableRow>
@@ -137,13 +135,6 @@ export const Search360 = (props) => {
137135
<TableCell>{row.last_name}</TableCell>
138136
<TableCell>{row.email}</TableCell>
139137
<TableCell>{formatPhoneNumber(row.mobile)}</TableCell>
140-
<TableCell
141-
style={{
142-
backgroundColor: row.rfm_color,
143-
color: row.rfm_text_color
144-
}}>
145-
{row.rfm_score} ({row.rfm_label})
146-
</TableCell>
147138
<TableCell>{row.source_type}</TableCell>
148139
<TableCell>{row.source_id}</TableCell>
149140
</TableRow>

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class SupportOverview extends Component {
2727
{ "title": "Total # of Gifts", "value": data.number_of_gifts},
2828
{ "title": "Largest Gift", "value": `$${data.largest_gift.toFixed(2)}`},
2929
{ "title": "Recurring Donor?", "value": data.is_recurring ? "Yes" : "No"},
30-
{ "title": "RFM Score", "value": data.rfm_score }
3130
// { "title": "PAWS Legacy Society?", "value": "test" }
3231
]
3332
return rows;
@@ -42,13 +41,9 @@ class SupportOverview extends Component {
4241
</Typography>
4342
</Grid>
4443
<Grid item>
45-
{(row.rfm_color)
46-
? <Typography variant={'body2'} align={"right"} style={{ "background": row.rfm_color, "color": row.rfm_text_color }}>
44+
<Typography variant={'body2'} align={"right"}>
4745
{row.value}
4846
</Typography>
49-
: <Typography variant={'body2'} align={"right"}>
50-
{row.value}
51-
</Typography>}
5247
</Grid>
5348
</Grid>
5449
));
@@ -63,10 +58,9 @@ class SupportOverview extends Component {
6358
<Container className={classes.containerInfo}>
6459
<Grid container direction={'column'}>
6560
<Grid container className={classes.spacingRows} direction={'row'} justify='center'>
66-
<Grid item style={{ "background": data.rfm_color, "borderRadius": "5px", "color": data.rfm_text_color, "paddingLeft": "1rem", "paddingRight": "1rem" }}>
61+
<Grid item style={{ "borderRadius": "5px", "paddingLeft": "1rem", "paddingRight": "1rem" }}>
6762
<Typography variant={'subtitle1'}>
6863
<b>Support Overview</b>
69-
<p style={{"fontSize": "0.875rem", "textAlign": "center" }}>{data.rfm_label}</p>
7064
</Typography>
7165
</Grid>
7266
</Grid>

src/client/src/pages/RFM/RFM.js

Lines changed: 0 additions & 218 deletions
This file was deleted.

0 commit comments

Comments
 (0)