Skip to content

Commit

Permalink
Merge pull request #21 from rice-apps/donation-line-bug
Browse files Browse the repository at this point in the history
Donation line bug
  • Loading branch information
KataTech authored Feb 3, 2024
2 parents 7ad508c + a0a1e54 commit b5a0baa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/pages/Donation/Donation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,19 @@ function Donation() {
// console.log(location.state.data);
const data = location.state.data;

var label = "Here's what your donation"
if (data.companyName) {
label = `Here's what the ${data.companyName} United Way campaign`
}

return (
<>
<div>
<div className="flex flex-col justify-center align-middle w-full">
<div className="flex align-baseline w-full">
<div className="flex flex-col mx-auto mb-5">
<a className="text-xl font-semibold text-center">
Here's what the {data.companyName} United Way campaign{" "}
{label}{" "}
</a>
<a className="text-lg font-semibold text-center">
made possible last year
Expand Down
1 change: 1 addition & 0 deletions client/src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const Home: React.FC = () => {
onChange={handleInputChange}
placeholder="Enter your company name"
className="input input-bordered w-full max-w-xs mt-3"
required
/>
</div>
)}
Expand Down

0 comments on commit b5a0baa

Please sign in to comment.