Skip to content

Commit

Permalink
fix: remove 1 min / switch to monotone area chart type
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Nov 14, 2024
1 parent 557a2a6 commit da88d45
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ const StakeCalculator = ({ solPrice, apy = 8.5 }: StakeCalculatorProps) => {
};

const handleAmountChange = (value: string) => {
if (!value) {
setAmountFormatted("1");
setAmount(1);
return;
}
setAmountFormatted(formatAmount(value, null, null, new Intl.NumberFormat()));
setAmount(parseInt(value.replace(/,/g, "")));
};
Expand Down Expand Up @@ -191,14 +186,14 @@ const StakeCalculator = ({ solPrice, apy = 8.5 }: StakeCalculatorProps) => {

<Area
dataKey="staked"
type="natural"
type="monotone"
fill="url(#fillStaked)"
fillOpacity={0.4}
stroke="var(--color-staked)"
/>
<Area
dataKey="unstaked"
type="natural"
type="monotone"
fill="url(#fillUnstaked)"
fillOpacity={0.4}
stroke="var(--color-unstaked)"
Expand Down

0 comments on commit da88d45

Please sign in to comment.