-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fade-in - lazy load dialog wrapper, not modals wrapped by it - remove…
… colors prop from charts, pass lighter/more consistent colors - add animation fade in via opacity to layout so ssr pages fade in - lazy load emojis and sentry to cut down on bundle size - add bundle analysis tool + script
- Loading branch information
Showing
27 changed files
with
1,695 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.3.1 | ||
3.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -534,7 +534,7 @@ DEPENDENCIES | |
webauthn | ||
|
||
RUBY VERSION | ||
ruby 3.3.1p55 | ||
ruby 3.3.2p78 | ||
|
||
BUNDLED WITH | ||
2.5.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,19 +30,6 @@ const ContactLegislatorDialog: React.FC<IProps> = ({ userVote, legislator, open, | |
handleClose(false); | ||
}, [handleClose]); | ||
|
||
// const getLegislatorEmail = () => { | ||
// if (IS_DEVELOPMENT) { | ||
// return "[email protected]"; | ||
// } | ||
// return legislator.email; | ||
// }; | ||
// const getLegislatorPhone = (): string => { | ||
// if (IS_DEVELOPMENT) { | ||
// return formatPhone("1234567890"); | ||
// } | ||
// return formatPhone(legislator.phone); | ||
// }; | ||
|
||
const handleSubmit = useCallback( | ||
(values: { message: string }) => { | ||
if (type === "email") { | ||
|
@@ -182,7 +169,7 @@ const ContactLegislatorDialog: React.FC<IProps> = ({ userVote, legislator, open, | |
Unfortunately, it's not possible to email {legislator.title} {legislator.fullName} directly. | ||
</span> | ||
<span>You can, however, email them through their website at:</span> | ||
<a target="_blank" href={legislator.email}> | ||
<a target="_blank" rel="noreferrer" href={legislator.email}> | ||
{legislator.email} | ||
</a> | ||
<span> | ||
|
@@ -251,28 +238,7 @@ const ContactLegislatorDialog: React.FC<IProps> = ({ userVote, legislator, open, | |
<Modal.Header id="contact-legislator-dialog"> | ||
<Modal.Title>{`Increase your sway by ${verbing} your representatives.`}</Modal.Title> | ||
</Modal.Header> | ||
<Modal.Body> | ||
{/* {legislator && ( | ||
<Form.Group controlId="legislator" className="my-2"> | ||
<Form.Label>{titleize(verbing)}:</Form.Label> | ||
<Form.Control | ||
as="select" | ||
name="legislator" | ||
value={selectedLegislator?.externalId} | ||
onChange={handleChangeLegislator} | ||
> | ||
{legislators?.map((l) => { | ||
return ( | ||
<option key={l.externalId} value={l.externalId}> | ||
{l.title} {l.fullName} | ||
</option> | ||
); | ||
})} | ||
</Form.Control> | ||
</Form.Group> | ||
)} */} | ||
{render} | ||
</Modal.Body> | ||
<Modal.Body>{render}</Modal.Body> | ||
<Modal.Footer> | ||
<Button onClick={handleClose} variant="secondary"> | ||
<FiX /> | ||
|
63 changes: 0 additions & 63 deletions
63
app/frontend/components/dialogs/ContactLegislatorDialogButton.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.