Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
andreitr committed Dec 2, 2024
1 parent 84bf967 commit 05a54fc
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/components/Delegates/DelegateCard/DelegateCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { Delegate } from "@/app/api/common/delegates/delegate";
import { SCWProfileImage } from "@/components/Delegates/DelegateCard/SCWProfileImage";

const CardHeader = ({
title,
cornerTitle,
subtitle,
}: {
title,
cornerTitle,
subtitle,
}: {
title: string;
cornerTitle: string;
subtitle: string;
Expand Down Expand Up @@ -47,22 +47,16 @@ const InactiveHeader = ({ outOfTen }: { outOfTen: string }) => {
};

export default function DelegateCard({
delegate,
totalProposals,
delegate,
totalProposals,
}: {
delegate: Delegate;
totalProposals: number;
}) {

// Display SCW if exists
const hasSCWAddress = Boolean(delegate.statement?.scw_address);

export default function DelegateCard({
delegate,
totalProposals,
}: {
delegate: Delegate;
totalProposals: number;
}) {
return (
<div className="flex flex-col sticky top-16 flex-shrink-0 width-[20rem]">
{totalProposals >= 3 ? (
Expand Down

0 comments on commit 05a54fc

Please sign in to comment.