Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Su Yeon Lee authored and Su Yeon Lee committed Jun 13, 2024
1 parent d6ac4b2 commit 25ced9e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 56 deletions.
11 changes: 6 additions & 5 deletions client/src/DonationInfo/DonationInfoPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,13 @@ function DonationInfoPage() {
}}
>
<Button
onClick={() => navigate('/home')}
style={{
marginLeft: '16px',
background: '#417FED',
color: 'white',
variant="contained"
color="primary"
endIcon={<ArrowForwardIcon />}
onClick={() => {
navigate('/communications');
}}
sx={{ marginLeft: '16px' }}
>
Send them a message now
</Button>
Expand Down
6 changes: 5 additions & 1 deletion client/src/HomeDashboard/HomeDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
ToggleButtonGroup,
} from '@mui/material';
import { useNavigate } from 'react-router-dom';
import ArrowForwardIcon from '@mui/icons-material/ArrowForward';
import { useAppDispatch } from '../util/redux/hooks';

interface BasicTableProps {
Expand Down Expand Up @@ -134,10 +135,13 @@ function HomeDashboard() {
</p>

<Button
variant="contained"
color="primary"
endIcon={<ArrowForwardIcon />}
onClick={() => {
handleClick();
}}
style={{ marginLeft: '16px', background: 'blue', color: 'white' }}
style={{ marginLeft: '16px', marginBottom: '20px' }}
>
Send them a message now
</Button>
Expand Down
52 changes: 2 additions & 50 deletions client/src/NewDonation/NewDonationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function NewDonationPage() {
return (
<Grid container sx={{ m: 3 }} spacing={2}>
<Grid item xs={12}>
<Typography variant="h2" sx={{ fontWeight: 'bold' }}>
<Typography variant="h4" sx={{ fontWeight: 'bold' }}>
Register New Donation
</Typography>
</Grid>
Expand Down Expand Up @@ -566,52 +566,4 @@ interface PurposeType {
_id?: string;
name?: string;
date_created?: Date;
}

const testDonors: DonorType[] = [
{
_id: '65daa67d6c34e8adb9f2d2c4',
contact_name: 'John Smith',
contact_email: '[email protected]',
contact_address: '3820 Spruce',
contact_phone: '609-297-6873',
donor_group: 'Individual',
registered_date: { $date: { $numberLong: '1463587200000' } },
last_donation_date: { $date: { $numberLong: '1684425600000' } },
last_communication_date: '',
type: 'donor',
org_address: '',
org_email: '',
org_name: '',
},
{
_id: '65daa7356c34e8adb9f2d2c5',
contact_name: 'Jane Doe',
contact_email: '[email protected]',
contact_address: '',
contact_phone: '609-235-3525',
donor_group: 'corporate',
registered_date: { $date: { $numberLong: '1517673600000' } },
last_donation_date: { $date: { $numberLong: '1635955200000' } },
last_communication_date: '',
type: 'sponsor',
org_name: 'Company A',
org_email: '[email protected]',
org_address: '2934 Chestnut st',
},
{
_id: '65daa8166c34e8adb9f2d2c6',
contact_name: 'Lisa Webster',
contact_email: '[email protected]',
contact_address: '',
contact_phone: '235-582-5325',
donor_group: 'Government',
registered_date: { $date: { $numberLong: '1663516800000' } },
last_donation_date: { $date: { $numberLong: '1666540800000' } },
last_communication_date: '2022-10-24T16:00:00.000+00:00',
type: 'grant',
org_address: 'Philadelphia',
org_email: '[email protected]',
org_name: 'Philadelphia Gov ',
},
];
}

0 comments on commit 25ced9e

Please sign in to comment.