@@ -3,27 +3,27 @@ import styled from "styled-components";
33
44 import CandidateListItem from "./candidateListItem";
55
6-function CandidatesList(props) {
7- const candidates = props.candidates.results;
6+const Table = styled.table`
7+ padding: 2em;
8+ border-spacing: 0;
9+ width: 100%;
10+`;
811
9- const Table = styled.table`
10- padding: 2em;
11- border-spacing: 0;
12- width: 100%;
13- `;
12+const TableHeader = styled.th`
13+ border-bottom: 1px solid #ccc;
14+ color: #999;
15+ font-size: 0.6em;
16+ font-weight: 500;
17+ max-width: 20em;
18+ overflow: hidden;
19+ padding-bottom: 0.5em;
20+ text-align: left;
21+ text-overflow: ellipsis;
22+ text-transform: uppercase;
23+`;
1424
15- const TableHeader = styled.th`
16- border-bottom: 1px solid #ccc;
17- color: #999;
18- font-size: 0.6em;
19- font-weight: 500;
20- max-width: 20em;
21- overflow: hidden;
22- padding-bottom: 0.5em;
23- text-align: left;
24- text-overflow: ellipsis;
25- text-transform: uppercase;
26- `;
25+function CandidatesList(props) {
26+ const candidates = props.candidates.results;
2727
2828 return (
2929 <Table cellspacing="0" cellpadding="0">