Skip to content

Commit

Permalink
chore: refactor author into proposal type
Browse files Browse the repository at this point in the history
  • Loading branch information
nguernse authored and zenlex committed Apr 27, 2024
1 parent 534f5a4 commit 0aa6d9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/ProposalsPagenatedList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export type Proposal = {
summary: string;
description: string;
type: 'topic' | 'project';
author?: string;
};

export type VoteListProps = {
Expand Down Expand Up @@ -62,11 +63,7 @@ export default function VoteList(props: VoteListProps) {
</div>
<div className="space-y-4">
{props.proposals.map((proposal) => (
<ProposalVoteCard
key={proposal.id}
proposal={proposal}
author="John Doe"
/>
<ProposalVoteCard key={proposal.id} proposal={proposal} />
))}
</div>
<div className="flex items-center justify-between mt-6">
Expand Down
1 change: 1 addition & 0 deletions src/pages/proposals.astro
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ import VoteList from '../components/ProposalsPagenatedList.tsx';
summary: 'I want to learn more about CMSs',
title: 'CMS Hack-night',
type: 'topic',
author: 'John Doe',
},
]}
/>
Expand Down

0 comments on commit 0aa6d9c

Please sign in to comment.