Skip to content

Commit

Permalink
chore: 당선된 후보 목록을 더 먼저 보여주기
Browse files Browse the repository at this point in the history
  • Loading branch information
limkhl committed May 23, 2024
1 parent bfab77b commit 73f27c7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,24 @@ const Result = () => {

return (
<div>
{agrees.length > 0 &&
{electedAgrees.length > 0 &&
<div>
<h3 className="listTitle">동의한 후보 {agrees.length}</h3>
<h3 className="listTitle">찬성한 후보 중 당선된 후보 {electedAgrees.length}</h3>
<ul className="list">
{agrees.map(response => (
<li key={`agree-${response.id}`} style={{padding: '10px 0'}}>
{electedAgrees.map(response => (
<li key={`elected-${response.id}`} style={{padding: '10px 0'}}>
<Response member={response.candidate}/>
</li>
))}
</ul>
</div>
}
{electedAgrees.length > 0 &&
{agrees.length > 0 &&
<div>
<h3 className="listTitle">찬성한 후보 중 당선된 후보 {electedAgrees.length}</h3>
<h3 className="listTitle">동의한 후보 {agrees.length}</h3>
<ul className="list">
{electedAgrees.map(response => (
<li key={`elected-${response.id}`} style={{padding: '10px 0'}}>
{agrees.map(response => (
<li key={`agree-${response.id}`} style={{padding: '10px 0'}}>
<Response member={response.candidate}/>
</li>
))}
Expand Down

0 comments on commit 73f27c7

Please sign in to comment.