Skip to content

Commit

Permalink
Add support for partners without website, remove Coinable site
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnyhaase committed Sep 11, 2023
1 parent f04599b commit 69e0d78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/app/src/grow/components/PartnerButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ type PartnerProps = PropsWithChildren & { partner: Partner };

const ExternalPartner: FC<PartnerProps> = ({ children, partner }) => (
<a
href={partner.website}
target="_blank"
href={partner.website || "#"}
target={partner.website ? "_blank" : "_self"}
rel="noreferrer"
className="transition-all cursor-pointer bg-cover bg-blend-multiply bg-center bg-no-repeat hover:scale-105 hover:brightness-105"
style={
Expand All @@ -28,7 +28,7 @@ const ExternalPartner: FC<PartnerProps> = ({ children, partner }) => (

const InternalPartner: FC<PartnerProps> = ({ children, partner }) => (
<Link
to={partner.website}
to={partner.website || "#"}
className="transition-all cursor-pointer bg-cover bg-blend-multiply bg-center bg-no-repeat hover:scale-105 hover:brightness-105"
style={
partner.imageUrl !== undefined
Expand Down
1 change: 0 additions & 1 deletion packages/app/src/grow/partners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const partners = [
},
{
name: "Coinable",
website: "https://coinablepay.com/",
imageUrl: "partners/coinable.svg",
},
];
2 changes: 1 addition & 1 deletion packages/app/src/grow/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export type Charity = PlaceholderOrg & {
};

export type Partner = PlaceholderOrg & {
website: string;
website?: string;
internal?: boolean;
};

0 comments on commit 69e0d78

Please sign in to comment.