Skip to content

demo app as telegram mini-app #692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion advanced/dapps/dca-dapp-demo/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function Home() {
</p>
)}

<Tabs defaultValue="dca" className="w-[400px]">
<Tabs defaultValue="dca" className="max-w-full">
<TabsList className="grid w-full grid-cols-2">
<TabsTrigger value="dca">DCA</TabsTrigger>
<TabsTrigger value="dashboard">Dashboard</TabsTrigger>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,18 @@ export function DCAExecutionProgress({

return (
<div className="flex flex-col w-full">
<h3 className="text-lg font-semibold mb-2">Executing the Strategy...</h3>
<p className="text-gray-700 mb-4">
Orders Remaining:{" "}
<span className="font-bold">{getRemainingOrders()}</span>
</p>
<Progress value={progress} className="w-full h-4 bg-blue-200" />
{nextExecutionTime && getRemainingOrders() > 0 && (
<p className="mt-2 text-sm text-gray-500">
Executing in {formatTimeRemaining(nextExecutionTime - Date.now())}
<p className="text-xs sm:text-sm font-semibold mb-1 sm:mb-2">Executing Strategy...</p>
<div className="flex items-center justify-between mb-1 sm:mb-2">
<p className="text-xs sm:text-sm text-gray-700">
Orders Left: <span className="font-bold">{getRemainingOrders()}</span>
</p>
)}
{nextExecutionTime && getRemainingOrders() > 0 && (
<p className="text-2xs sm:text-xs text-gray-500">
Next: {formatTimeRemaining(nextExecutionTime - Date.now())}
</p>
)}
</div>
<Progress value={progress} className="w-full h-2 sm:h-3 bg-blue-200" />
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Progress = React.forwardRef<
{...props}
>
<ProgressPrimitive.Indicator
className="h-full w-full flex-1 bg-primary transition-all"
className="h-full w-full flex-1 bg-blue-500 transition-all"
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
/>
</ProgressPrimitive.Root>
Expand Down