Skip to content

Commit 42ddc06

Browse files
chore: improve copy (#792)
* fix: typo * fix: lint
1 parent 63f129d commit 42ddc06

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

advanced/dapps/smart-sessions-demo/src/components/DcaComponents/DCA.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function DCA() {
1212
<main className="flex min-h-screen flex-col items-center justify-center p-8 bg-gray-100 dark:bg-gray-900">
1313
<div className="w-full max-w-sm text-center mb-12">
1414
<h1 className="text-3xl font-bold mb-4 text-gray-800 dark:text-gray-200">
15-
Dollor Cost Average
15+
Dollar Cost Average
1616
</h1>
1717

1818
{status === "connected" || address ? (
@@ -21,7 +21,7 @@ export default function DCA() {
2121
</div>
2222
) : (
2323
<p className="text-lg text-gray-600 dark:text-gray-400 font-bold">
24-
Connect wallet to create startegy.
24+
Connect wallet to create startegy
2525
</p>
2626
)}
2727

advanced/dapps/smart-sessions-demo/src/components/DcaComponents/DCAForm.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function DCAForm() {
4949
const [isLoading, setLoading] = React.useState(false);
5050
const isSupported = useMemo(
5151
() => isSmartSessionSupported(),
52-
[status, address],
52+
[status, address]
5353
);
5454

5555
const isWalletConnecting =
@@ -67,7 +67,7 @@ function DCAForm() {
6767

6868
const intervalInMilliseconds = calculateInterval(
6969
strategyWithTimestamp.investmentInterval,
70-
strategyWithTimestamp.intervalUnit,
70+
strategyWithTimestamp.intervalUnit
7171
);
7272

7373
const expirationTime =
@@ -79,7 +79,7 @@ function DCAForm() {
7979
strategy={strategyWithTimestamp}
8080
key={Date.now()}
8181
/>,
82-
{ duration: expirationTime - strategyWithTimestamp.createdTimestamp },
82+
{ duration: expirationTime - strategyWithTimestamp.createdTimestamp }
8383
);
8484
} catch (e) {
8585
toast("Error", {
@@ -93,7 +93,7 @@ function DCAForm() {
9393
return (
9494
<Card>
9595
<CardHeader>
96-
<CardDescription>Set Dollar cost average strategy</CardDescription>
96+
<CardDescription>Set DCA Strategy</CardDescription>
9797
</CardHeader>
9898
<form onSubmit={handleSubmit(onSubmit)}>
9999
<CardContent className="space-y-4">

0 commit comments

Comments
 (0)