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

refactor: add view impact cta #161

Merged
merged 1 commit into from
Nov 11, 2024
Merged
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
15 changes: 13 additions & 2 deletions src/grants/components/grant-list/grant-list-item.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Link from 'next/link';

import { Avatar } from '@nextui-org/react';
import { Avatar, Button } from '@nextui-org/react';

import { ROUTE_SECTIONS } from '@/shared/core/constants';
import { cn } from '@/shared/utils/cn';
Expand Down Expand Up @@ -95,9 +95,20 @@ export const GrantListItem = ({ grant, isLink = true, ctaText }: Props) => {
)}
</div>
</div>
<div className="flex w-full items-center justify-end gap-4 pt-6 lg:max-w-[180px] lg:pt-0">
<div className="flex w-full flex-col items-center justify-end gap-4 pt-6 md:flex-row lg:max-w-[180px] lg:pt-0">
<ApplyButton url={url} text={ctaText} />

{!ctaText && (
<div className="flex w-full lg:hidden">
<Button
className="mx-auto w-full rounded-xl border border-white/20 font-semibold"
variant="bordered"
>
<span>View Impact</span>
</Button>
</div>
)}

<div className="hidden lg:flex">
<CaretRightIcon />
</div>
Expand Down
Loading