Skip to content

Commit

Permalink
VOTE-2910 Replace Spanish PDF and revert workaround (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamiraMSadat authored Nov 22, 2024
1 parent 93ccad6 commit c137095
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 191 deletions.
Binary file modified public/data/es/nvrf/Federal_Voter_Registration_es.pdf
Binary file not shown.
12 changes: 6 additions & 6 deletions public/es/nvrf/assets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,19 @@
"options": [
{
"key": "Sr. / Mr.",
"value": "Mr."
"value": "Mr"
},
{
"key": "Sta. / Miss",
"value": "Miss"
},
{
"key": "Sra. /Ms.",
"value": "Ms."
"value": "Ms"
},
{
"key": "Sra. / Mrs.",
"value": "Mrs."
"value": "Mrs"
}
]
},
Expand Down Expand Up @@ -500,19 +500,19 @@
"options": [
{
"key": "Sr. / Mr.",
"value": "Mr."
"value": "Mr"
},
{
"key": "Sta. / Miss",
"value": "Miss"
},
{
"key": "Sra. / Ms.",
"value": "Ms."
"value": "Ms"
},
{
"key": "Sra. / Mrs.",
"value": "Mrs."
"value": "Mrs"
}
]
},
Expand Down
File renamed without changes.
182 changes: 0 additions & 182 deletions src/Utils/GenerateFilledPDF_es.jsx

This file was deleted.

4 changes: 1 addition & 3 deletions src/Views/FormPages/Delivery.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Button, Icon, Grid } from '@trussworks/react-uswds';
import GenerateFilledPDF_en from 'Utils/GenerateFilledPDF_en';
import GenerateFilledPDF_es from 'Utils/GenerateFilledPDF_es';
import GenerateFilledPDF from 'Utils/GenerateFilledPDF';
import { sanitizeDOM } from 'Utils/JsonHelper';
import {renderToStaticMarkup} from "react-dom/server";

Expand All @@ -9,7 +8,6 @@ function Delivery(props) {
const state = props.stateData;
const stringContent = props.stringContent
const lang = document.documentElement.lang;
const GenerateFilledPDF = (lang == "es") ? GenerateFilledPDF_es : GenerateFilledPDF_en;

// Add A/B Message randomization.
// example: const reminderMessage = randomProperty(content.reminder_messages);
Expand Down

0 comments on commit c137095

Please sign in to comment.