@empoweredvote/ev-ui 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1221,7 +1221,6 @@ function Header({
|
|
|
1221
1221
|
// src/SiteHeader.jsx
|
|
1222
1222
|
import React3 from "react";
|
|
1223
1223
|
var defaultNavItems = [
|
|
1224
|
-
{ label: "About Us", href: "https://empowered.vote/about" },
|
|
1225
1224
|
{
|
|
1226
1225
|
label: "Features",
|
|
1227
1226
|
href: "#",
|
|
@@ -1229,12 +1228,10 @@ var defaultNavItems = [
|
|
|
1229
1228
|
{ label: "Political Compass", href: "https://compass.empowered.vote" },
|
|
1230
1229
|
{ label: "Find Representatives", href: "https://essentials.empowered.vote" },
|
|
1231
1230
|
{ label: "Read & Rank", href: "https://readrank.empowered.vote" },
|
|
1232
|
-
{ label: "Treasury Tracker", href: "https://
|
|
1233
|
-
{ label: "Empowered Badges", href: "https://
|
|
1231
|
+
{ label: "Treasury Tracker", href: "https://treasurytracker.empowered.vote" },
|
|
1232
|
+
{ label: "Empowered Badges", href: "https://badges.empowered.vote" }
|
|
1234
1233
|
]
|
|
1235
|
-
}
|
|
1236
|
-
{ label: "Volunteer", href: "https://empowered.vote/volunteer" },
|
|
1237
|
-
{ label: "FAQ", href: "https://empowered.vote/faq" }
|
|
1234
|
+
}
|
|
1238
1235
|
];
|
|
1239
1236
|
var defaultCtaButton = {
|
|
1240
1237
|
label: "Donate",
|
|
@@ -4415,7 +4412,7 @@ function StanceAccordion({
|
|
|
4415
4412
|
if (contextCache.current.has(topicId)) return;
|
|
4416
4413
|
try {
|
|
4417
4414
|
const res = await fetch(
|
|
4418
|
-
`${apiUrl}/compass/politicians/${politicianId}/${topicId}/context`,
|
|
4415
|
+
`${apiUrl}/api/compass/politicians/${politicianId}/${topicId}/context`,
|
|
4419
4416
|
{ credentials: "include" }
|
|
4420
4417
|
);
|
|
4421
4418
|
if (res.status === 404) {
|
|
@@ -4437,7 +4434,7 @@ function StanceAccordion({
|
|
|
4437
4434
|
if (quotesCache.current !== null) return;
|
|
4438
4435
|
try {
|
|
4439
4436
|
const res = await fetch(
|
|
4440
|
-
`${apiUrl}/essentials/quotes?politician_id=${politicianId}`,
|
|
4437
|
+
`${apiUrl}/api/essentials/quotes?politician_id=${politicianId}`,
|
|
4441
4438
|
{ credentials: "include" }
|
|
4442
4439
|
);
|
|
4443
4440
|
if (res.ok) {
|