@@ -77,7 +77,7 @@ export default function Results() {
7777 </ TableRow >
7878 </ TableHeader >
7979 < TableBody >
80- { electionsResults . sort ( ( a , b ) => b . final - a . final ) . map ( ( result , index ) => (
80+ { electionsResults . sort ( ( a , b ) => ( '' + a . name ) . localeCompare ( b . name ) ) . map ( ( result , index ) => (
8181 < TableRow key = { index } >
8282 < TableCell className = 'font-semibold' >
8383 { index + 1 }
@@ -86,7 +86,7 @@ export default function Results() {
8686 < TableCell > { result . for } </ TableCell >
8787 < TableCell > { result . abstain } </ TableCell >
8888 < TableCell > { result . against } </ TableCell >
89- < TableCell className = { `${ result . final >= 50 ? 'text-green-500' : 'text-red-500' } font-semibold` } > { result . final } </ TableCell >
89+ < TableCell className = { `${ result . final >= 50 ? 'text-green-500' : 'text-red-500' } font-semibold` } > { result . final } % </ TableCell >
9090 </ TableRow >
9191 ) ) }
9292 </ TableBody >
@@ -98,108 +98,6 @@ export default function Results() {
9898 ) ;
9999}
100100
101- function BellIcon ( props ) {
102- return (
103- < svg
104- { ...props }
105- xmlns = 'http://www.w3.org/2000/svg'
106- width = '24'
107- height = '24'
108- viewBox = '0 0 24 24'
109- fill = 'none'
110- stroke = 'currentColor'
111- strokeWidth = '2'
112- strokeLinecap = 'round'
113- strokeLinejoin = 'round'
114- >
115- < path d = 'M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9' />
116- < path d = 'M10.3 21a1.94 1.94 0 0 0 3.4 0' />
117- </ svg >
118- ) ;
119- }
120-
121- function GaugeIcon ( props ) {
122- return (
123- < svg
124- { ...props }
125- xmlns = 'http://www.w3.org/2000/svg'
126- width = '24'
127- height = '24'
128- viewBox = '0 0 24 24'
129- fill = 'none'
130- stroke = 'currentColor'
131- strokeWidth = '2'
132- strokeLinecap = 'round'
133- strokeLinejoin = 'round'
134- >
135- < path d = 'm12 14 4-4' />
136- < path d = 'M3.34 19a10 10 0 1 1 17.32 0' />
137- </ svg >
138- ) ;
139- }
140-
141- function LogOutIcon ( props ) {
142- return (
143- < svg
144- { ...props }
145- xmlns = 'http://www.w3.org/2000/svg'
146- width = '24'
147- height = '24'
148- viewBox = '0 0 24 24'
149- fill = 'none'
150- stroke = 'currentColor'
151- strokeWidth = '2'
152- strokeLinecap = 'round'
153- strokeLinejoin = 'round'
154- >
155- < path d = 'M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4' />
156- < polyline points = '16 17 21 12 16 7' />
157- < line x1 = '21' x2 = '9' y1 = '12' y2 = '12' />
158- </ svg >
159- ) ;
160- }
161-
162- function Package2Icon ( props ) {
163- return (
164- < svg
165- { ...props }
166- xmlns = 'http://www.w3.org/2000/svg'
167- width = '24'
168- height = '24'
169- viewBox = '0 0 24 24'
170- fill = 'none'
171- stroke = 'currentColor'
172- strokeWidth = '2'
173- strokeLinecap = 'round'
174- strokeLinejoin = 'round'
175- >
176- < path d = 'M3 9h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9Z' />
177- < path d = 'm3 9 2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8 1.1L21 9' />
178- < path d = 'M12 3v6' />
179- </ svg >
180- ) ;
181- }
182-
183- function UserIcon ( props ) {
184- return (
185- < svg
186- { ...props }
187- xmlns = 'http://www.w3.org/2000/svg'
188- width = '24'
189- height = '24'
190- viewBox = '0 0 24 24'
191- fill = 'none'
192- stroke = 'currentColor'
193- strokeWidth = '2'
194- strokeLinecap = 'round'
195- strokeLinejoin = 'round'
196- >
197- < path d = 'M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2' />
198- < circle cx = '12' cy = '7' r = '4' />
199- </ svg >
200- ) ;
201- }
202-
203101function UsersIcon ( props ) {
204102 return (
205103 < svg
0 commit comments