Skip to content
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

Change decimal separator for well-structured amount view & Update environment variable name for Appwrite key #44

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ APPWRITE_DATABASE_ID=
APPWRITE_USER_COLLECTION_ID=
APPWRITE_BANK_COLLECTION_ID=
APPWRITE_TRANSACTION_COLLECTION_ID=
APPWRITE_SECRET=
NEXT_APPWRITE_KEY=

#PLAID
PLAID_CLIENT_ID=
Expand Down
2 changes: 1 addition & 1 deletion components/AnimatedCounter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const AnimatedCounter = ({ amount }: { amount: number }) => {
<div className="w-full">
<CountUp
decimals={2}
decimal=","
decimal="."
prefix="$"
end={amount}
/>
Expand Down
9 changes: 7 additions & 2 deletions components/ui/progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ import * as ProgressPrimitive from "@radix-ui/react-progress"

import { cn } from "@/lib/utils"

type ProgressProps = React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> & {
indicatorClassName?: string;
};

const Progress = React.forwardRef<
React.ElementRef<typeof ProgressPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
ProgressProps
>(({ indicatorClassName, className, value, ...props }, ref) => (
<ProgressPrimitive.Root
ref={ref}
Expand All @@ -18,11 +22,12 @@ const Progress = React.forwardRef<
{...props}
>
<ProgressPrimitive.Indicator
className={cn('h-full w-full flex-1 bg-primary transition-all', indicatorClassName)}
className={cn("h-full w-full flex-1 bg-primary transition-all", indicatorClassName)}
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
/>
</ProgressPrimitive.Root>
))

Progress.displayName = ProgressPrimitive.Root.displayName

export { Progress }