Skip to content

Commit

Permalink
Merge pull request #20 from UniqueClone/main
Browse files Browse the repository at this point in the history
Adding 'Buy Me a Coffee' link
  • Loading branch information
UniqueClone authored Jun 26, 2024
2 parents 740dcfe + a412818 commit c912caf
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/components/MortgageComparison/MortgageComparison.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stack } from "@fluentui/react";
import { Icon, Link, Stack, Text } from "@fluentui/react";
import React from "react";
import { InterestRate } from "../InterestRate/InterestRate";
import { MaxLoanInput } from "../MaxLoanInput/MaxLoanInput";
Expand All @@ -9,7 +9,7 @@ export interface MortgageComparisonProps {}

export const MortgageComparison: React.FC<MortgageComparisonProps> = () => {
const [interestRate, setInterestRate] = React.useState<number | undefined>(
3.8
4
);
const [useGlobalInterestRate, setUseGlobalInterestRate] =
React.useState(true);
Expand All @@ -27,18 +27,14 @@ export const MortgageComparison: React.FC<MortgageComparisonProps> = () => {
return (
<Stack styles={containerStackStyles} tokens={containerStackTokens}>
<h1>Mortgage Comparison</h1>

<InterestRate
interestRate={interestRate}
setInterestRate={setInterestRate}
useGlobalInterestRate={useGlobalInterestRate}
setUseGlobalInterestRate={setUseGlobalInterestRate}
/>

<MaxLoanInput maxLoan={maxLoan} setMaxLoan={setMaxLoan} />

<TermInput term={term} setTerm={setTerm} />

<Stack horizontal tokens={comparisonStackTokens} wrap>
<MortgageOption
id={1}
Expand All @@ -61,6 +57,18 @@ export const MortgageComparison: React.FC<MortgageComparisonProps> = () => {
{...{ interestRate, useGlobalInterestRate, maxLoan, term }}
/>
</Stack>

<br />

<Text variant="medium">
If you found this useful, consider{" "}
<Link
target="_blank"
href="https://www.buymeacoffee.com/ryanlynch"
>
buying me a coffee! <Icon iconName="CoffeeScript" />{" "}
</Link>
</Text>
</Stack>
);
};
Expand Down

0 comments on commit c912caf

Please sign in to comment.