-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from dharamveergit/gtx
fix: pricing page
- Loading branch information
Showing
6 changed files
with
91 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,41 @@ | ||
import { Skeleton } from "@/components/ui/skeleton"; | ||
|
||
type MonthEarning = { | ||
size?: 20 | 24; | ||
className?: string; | ||
value?: string; | ||
title?: string; | ||
} | ||
size?: 20 | 24; | ||
className?: string; | ||
value?: string; | ||
title?: string; | ||
suffix?: string; | ||
loading?: boolean; | ||
}; | ||
|
||
const MonthEarning = ({ size, className, value, title }: MonthEarning) => { | ||
return ( | ||
<div className=""> | ||
<p className={`pb-2 border-b font-medium text-sm text-black dark:text-white`}>{title}</p> | ||
<p className={`pt-2 font-semibold text-black dark:text-white ${size === 20 ? "text-xl" : "text-2xl"}`}>{value}/month</p> | ||
</div> | ||
); | ||
const MonthEarning = ({ | ||
size, | ||
className, | ||
value, | ||
title, | ||
suffix, | ||
loading, | ||
}: MonthEarning) => { | ||
return ( | ||
<div className=""> | ||
<p | ||
className={`border-b pb-2 text-sm font-medium text-black dark:text-white`} | ||
> | ||
{title} | ||
</p> | ||
{loading ? ( | ||
<Skeleton className="mt-2 h-8 w-1/2" /> | ||
) : ( | ||
<p | ||
className={`pt-2 font-semibold text-black dark:text-white ${size === 20 ? "text-xl" : "text-2xl"}`} | ||
> | ||
{value} | ||
{suffix ?? "/month"} | ||
</p> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default MonthEarning; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.